int [] a1 = new int[3];
int [] a2 = new int[4];
int[][] a3 = new int[3][4];
String[] a4 = new String[3];
System.out.println(a1.getClass() == a2.getClass());
System.out.println(a1.getClass() == a3.getClass()); //编译错误:Incompatible operand types Class<capture#8-of ? extends int[]> and Class<capture#9-of ? extends int[][]>
System.out.println(a1.getClass() == a4.getClass()); //编译错误:Incompatible operand types Class<capture#10-of ? extends int[]> and Class<capture#11-of ? extends String[]>
求解原因呀!!!我看张老师写的好好的 |
|