本帖最后由 孙百鑫 于 2013-6-30 08:50 编辑
int [] a1 = new int []{1,2,3};
int [] a2 = new int [4];
int [] [] a3 = new int [2] [3];
String [] a4 = new String[]{"a","b","c"};
System.out.println(a1.getClass() == a4.getClass());
System.out.println(a1.getClass() == a3.getClass());
无法通过编译,错误提示:Incompatible operand types Class<capture#8-of ? extends int[]> and Class<capture#9-of ? extends int[][]>
没看懂。。这个是什么异常啊?咋解决?
|