I need the data from the array to be output to the csv file in a line (so that later in the excele they were in different cells) Here is the code: I created the csv file itself:
String csv = "data.csv"; CSVWriter writer = new CSVWriter(new FileWriter(csv, true)); //Create record String [] record = name.trim().split(","); String str_track = sc.nextLine(); writer.writeNext(record); Next, I divide the string into elements, creating an array of them:
String [] str_tr; String delimeter = "\t"; // Разделитель str_tr = str_track.split(delimeter); And I do not know how to correctly display them in the table, please tell me!