求各位大神指点一下!原本想试一下不规则二维整数的用法,用Eclipce为啥报错?
public class caogao {
public static void main(String[] args) {
String[][] names=new String[2][];
names[0]=new String[2];
names[1]=new String[5];
names[0][2]="lisi";
names[1][5]="wangwu";
System.out.println(names[1][2]);
System.out.println(names[1][5]);
}
}