public static void main(String[] args){ int i = 5; i+=5;//计算方式 i=i+5 变量i先加5,再赋值变量i System.out.println(i); //输出结果是10 }
public static void main(String[] args) { System.out.println(1==1);//true System.out.println(1<2);//true System.out.println(3>4);//false System.out.println(3<=4);//true System.out.println(3>=4);//false System.out.println(3!=4);//true }