目录标题
1. println输出各类型的结果
1.1 int
int i = 1;
System.out.println(i);
运行结果:
1.2 String+int
System.out.println("Hello" + i);
运行结果: hello1
1.3 char[ ]
char[] c = {
'x','y','z'};
System.out.println(c);
运行结果: xyz
1.4 String+char[ ]
char[] c = {
'x','y','z'};
System.out.println("Hello" + c);
运行结果:Hello[C@123a439b