點我想解析以下CSV文件:解析的CSV文件顯示在開始
02.01.15,Januar,GEZ,Telekommunikation,"€ 211,44",01_jährlich,Ist
02.01.15,Januar,BGV: Haftpfl. + Unfall,Versicherungen,"€ 171,95",01_jährlich,Ist
我使用下面的代碼解析:
CSVReader csvReader = new CSVReader(new FileReader(file));
String [] nextLine;
while ((nextLine = csvReader.readNext()) != null) {
for (String text : nextLine) {
System.out.print(text + " ");
}
System.out.println();
}
輸出顯示在一個垂直居中點第一行的開始。 問題是什麼?