0

I feel so embarrassed that we're not able to help more. Anyway, as a parting gift, try running this code. If you study it and learn how it works, it's the solution to you current problem.

public static void main(String args[]) throws Exception {
      
 String data = "1.5, 2.99, 3, 4000";
 String[] arrayOfTokens = data.split(",");
 for (String s : arrayOfTokens) {
    Double d = Double.parseDouble(s);
    System.out.println(d);
 }
}
0

Hey guys, I can solve the problem already. Thank you so much. I can move on to other errors now. (:

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.