char类型和整型连接会变成整型
char、整型分别与String连接会变成字符串
class Test1
{
public static void main(String[] args)
{
char c = 'a';
int num = 10;
String str = "hello";
System.out.println(c + num + str);//107hello
System.out.println(c + str + num);//ahello10
System.out.println((c + num) + str);//107hello
System.out.println(str + num + c);//hello10a
}
}



