就是啊 為什么不加 int
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); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ??
? ? ? ??
? ? ? ??
? ??
}
}
2016-07-08
three 前面的int嗎? 因?yàn)橹耙呀?jīng)定義過(guò)變量類(lèi)型 one two three 變量類(lèi)型都是int 不需要再定義直接賦值就可以啦
2016-07-08
被你誤解了,應(yīng)該是three,不算there。one, two, three~~~