int[] a1=new int[3];
int[] a2=new int[4];
int[][]a3=new int[2][4];
String[] a4=new String[]{"d","h","d","g"};
System.out.println(a1.getClass() == a2.getClass());
//System.out.println(a1.getClass() == a3.getClass());
//System.out.println(a1.getClass() == a4.getClass());
为什么这两行编译不同过啊? 返回的不应该是Class吗? 怎么会类型不兼容呢? |
|