public class TestString
{
public static void main(String[] args)
{
double[][] d;
String s = "1,2;3,4,5;6,7,8";
String[] s1 = s.split(";"); //1,2 3,4,5 6,7,8
d = new double[s1.length][];
for(int i=0; i
String[] s2 = s1[i].split(","); // 1 2 3 4 5 6 7 8
d[i] = new double[s2.length];
for(int j=0; j
d[i][j] = Double.parseDouble(s2[j]);
}
}
for(int i=0; i
for(int j=0; j
System.out.print(d[i][j] + " ");
}
System.out.println();
}
}
}