1.字符串22
public static void main(String[] args) {
int a = 10;
int b= 20 ;
a+=b;//a=a+b
a-=b;//a=a-b
System.out.println(a);
// 字符串连接符 + str
System.out.println(""+ a+b);//字符串在前,自动转化成字符串形式
System.out.println(a+b+"");// int形式正常算
2.三元一次方程
public static void main(String[] args) {
//三元一次方程
// x ? y : z
// 如果x=true;则结果为y;否则为z
int score = 40;
String tybe = score < 60 ? "不及格":"及格";
System.out.println(b);
}