String numbers = ("5,25,77,44,64,8,55,28,86,35");
I would like to return an array of double values from the string. I am unable to do that successfully with the following code :
public static double[] fillArray(String numbers)
{
String[] answers = numbers.split(",");
double[] boom = new double[answers.length];
for (int index = 0; index < answers.length; index++)
{
boom[index] = Double.parseDouble(answers[index]);
}
return boom;
}
The error I get is quite weird...
[De56f047c
Why is that and how do I fix it?