大神求解釋
public class helloworld{ ?public static void main(String[] args){ ? int one=10; ? int two=20; ? int three=0; ?int three = one + two; ?int three+= one; ?int three-= one; ?int three*= one; ?int three/= one; ?int three%= one; 我這個菜鳥前面寫成這樣,結果老是出錯,我想知道為什么不能這樣寫?
2017-06-06
已經(jīng)變量定義過類型了,在賦值是不需要定義變量了