问题:int类型数组、char型数组、String型数组打印输出的结果为什么不一样?
代码如下:
- public class PrintDemo
- {
- public static void main(String[] args)
- {
- int[] x = {1,2,3,4};
- char[] y = {'a','b','c','d'};
- String[] z {"aa","bb","cc","dd"};
- System.out.println(x);
- System.out.println(y);
- System.out.println(z);
- }
- }
|
|