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);
        
    }
Menu