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

I will try it. Thank you so much!

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.