蒲公英521
2016-07-08 15:05
public class HelloWorld{
public static void main(String[] args) {
int one = 10 ;
int two = 20 ;
int three = 0 ;
there=one+two;
System.out.println(there=one+two==>there);
there+=one;
System.out.println(there+=one==>there);
there-=one;
System.out.println(there-=one==>there);
there*=one;
System.out.println(there*=one==>there);
there/=one;
System.out.println(there/=one==>there);
there%=one;
System.out.println(there%=one==>there);
}
}
three 前面的int吗 因为之前已经定义过变量类型 one two three 变量类型都是int 不需要再定义直接赋值就可以啦
被你误解了,应该是three,不算there。one, two, three~~~
Java入门第一季(IDEA工具)升级版
1165171 学习 · 17581 问题
相似问题