java中的赋值运算符,帮我看看。总感觉不对
public class HelloWorld{
public static void main(String[] args) {
int one = 10 ;
int two = 20 ;
int three = 0 ;
int three=one+two==>30;
int three+=one==>40;
int three-=one==>30;
int three*+one==>300;
int three/=one==>30;
int three%/==>0
应用运算符实现:
int three=one+two==>30;
int three+=one==>40;
int three-=one==>30;
int three*+one==>300;
int three/=one==>30;
int three%/==>0
我很奇怪,总感觉不对。但是已经同过了测试题到底是什么回事?