为什么会出错?
public class Pratice{public static void main(String[] args){
double [][]dTS1;
String firstS = "1,2;3,4,5,;6,7,8";
String []tS1 = firstS.split(";");
dTS1 = new double [tS1.length];//这里为什么会出错?????
for(int i = 0; i < tS1.length; i++){
String []tS2 = tS1[i].split(",");
dTS1 [i] = new double [tS2.length];
for(int j = 0; j < tS2.length; j++){
dTS1[i][j]= Double.parseDouble(tS2[j]);
}
}
}
}