the problem is shown in the title, and the related code is shown in the following figure:
private static void init() throws IOException {
BufferedReader buff = new BufferedReader(new InputStreamReader(
(new FileInputStream(new File(PATH)))));
String str = buff.readLine();
while (str != null) {
str=str+"\r\n";
String[] arr = str.split("\\s{2,}|\t");
System.out.println(arr[0]+"-"+arr[1]+"-"+arr[2]+"-"+arr[3]);
System.out.println(Float.parseFloat(arr[3]));
labelList.add(Float.parseFloat(arr[3]));
dataList.add(Arrays.asList(Float.parseFloat(arr[0]),
Float.parseFloat(arr[1]),Float.parseFloat(arr[2])));
str = buff.readLine();
}
buff.close();
}
text content format is shown in figure
: