int [] a1 = new int []{2,4};
String [] a4 = new String [] {"tyr","vcx","asa","das"};
System.out.println(Arrays.asList(1,2));
System.out.println(Arrays.asList(a1));
System.out.println(Arrays.asList(a4));
打印结果:
[1, 2]
[[I@391b0c]
[tyr, vcx, asa, das]
为什么红色部分打印的不是int 元素,, 而是 哈希值
|
|