Java reads txt text content, how to make each line of content separated by spaces and converted to float type storage?

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
clipboard.png

:
clipboard.png

Apr.01,2021

    public static void main(String[] args) throws Exception {
        
        List<Float> labelList = new ArrayList<Float>();
        
        List<Float> dataList = new ArrayList<Float>();

        
         BufferedReader buff = new BufferedReader(new InputStreamReader(
                    (new FileInputStream(new File("D:/1.txt")))));
          String str = null;
            while (null  != (str = buff.readLine())) {
                str = str.trim();
                if("".equals(str)){
                    continue;
                }
                String[] arr = str.split("\\s+");
                System.out.println(arr[0]+"-"+arr[1]+"-"+arr[2]+"-"+arr[3]);
                labelList.add(Float.parseFloat(arr[3]));
                dataList.add(Float.parseFloat(arr[0]));
                dataList.add(Float.parseFloat(arr[1]));
                dataList.add(Float.parseFloat(arr[2]));
            }
            buff.close();
            System.out.println(labelList);
            System.out.println(dataList);
        
    }
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b05b-2c252.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b05b-2c252.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?