本帖最后由 清秋 于 2011-11-28 20:18 编辑
-
- int[] a1 = new int[3];
- int[] a2 = new int[4];
- int[][] a3 = new int[2][3];
- String[] a4 = new String[3];
-
- System.out.println(a1.getClass() == a2.getClass());
- System.out.println(a1.getClass() == a4.getClass());//①
- System.out.println(a1.getClass() == a3.getClass());//②
复制代码 提示
Description Resource Path Location Type
Incompatible operand types Class<capture#10-of ? extends int[]> and Class<capture#11-of ? extends int[][]> ReflectTest.java /javaenhance/src/cn/itcast/day1 line 75 Java Problem
刚刚谷歌过,发现也有人问这个问题。没看懂。继续求解
|