java中等于号不是==这么写么?那这==>个符号又是什么?
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);
那为什么这教程上有?
JAVA中等于号是==,JAVA中没有==>运算符号,不过有时为表达清楚,可以做为字符串输出,以增强程序的可读性。
JAVA中等于号是==,JAVA中没有==>运算符号。