Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static float[] stringToFloat(String s) {

        float[] arr = new float[24];
        String[] splits = s.split("\t");

        for (int i = 0; i < s.length(); i++) {
            try {
                arr[i] = Float.parseFloat(splits[i]);
            } catch (Exception e) {

            }
        }
        return arr;
    }
}