int[] arr = new int[] {1, 2, 3};
System.out.println(arr); // 地址值 [I@34a245ab
char[] arr1 = new char[] {'a', 'b', 'c'};
System.out.println(arr1); // abc
println(char[]) 里面写的遍历数组.
int[] arr = new int[] {1, 2, 3};
System.out.println(arr); // 地址值 [I@34a245ab
char[] arr1 = new char[] {'a', 'b', 'c'};
System.out.println(arr1); // abc
println(char[]) 里面写的遍历数组.