浅学之字符串连接符
public class Demo04 {
public static void main(String[] args) {
int a = 10;
int b = 20;
//字符串连接符 +
System.out.println(""+a+b);//加号前面有字符串 则结果为字符串
System.out.println(a+b+"");//加号后面有字符串 则结果正常运算
}
}