本帖最后由 张雪萍 于 2013-5-8 22:13 编辑
- int [] a1 = new int[3];
- int [] a2 = new int[4];
- int[][] a3 = new int[2][3];
- String [] a4 = new String[]{"a","b","c"};
- System.out.println(a1.getClass() == a2.getClass());
- System.out.println(a1.getClass()==a3.getClass());
- System.out.println(a1.getClass() == a4.getClass());
复制代码 这是什么错误啊
iMultiple markers at this line
- Incompatible operand types Class<capture#8-of ? extends int[]
> and Class<capture#9-of ? extends int[][]>
- Incompatible operand types Class<capture#8-of ? extends int[]
> and Class<capture#9-of ? extends String[]>
Incompatible operand types Class<capture#8-of ? extends int[]> and Class<capture#9-of ? extends int[][]>
|