I have a string:
String stringProfile = \"0,4.28 10,4.93 20,3.75\";
I am trying to turn it into an array like as follows:
d
if you split with " " you get an array of one dimension, then you can split again and get a multidimensional array like you want:
String arrayS = "0,4.28 10,4.93 20,3.75";
String [] a = arrayS.spit(" ");
double [][] arrayD;
for(String j: a){
arrayD.append(j.split(","));
}
//then print your array here