JAVA中的赋值运算符
java中等于号不是==这么写么?那这==>个符号又是什么?
java中等于号不是==这么写么?那这==>个符号又是什么?
2016-04-18
three = one+two;
System.out.println("three=one+two==>"+three);
three+=one;
System.out.println("three+=one==>"+three);
three-=one;
System.out.println("three-=one==>"+three);
three*=one;
System.out.println("three*=one==>"+three);
three/=one;
System.out.println("three/=one==>"+three);
three%=one;
System.out.println("three%=one==>"+three);
举报