為什么這個(gè)程序老提示有錯(cuò)
public class HelloWorld{
? ? public static void main(String[] args) {
? ?int one = 10 ;
? ? ? ? int two = 20 ;
? ? ? ? int three = 0 ;
? ? ? ? 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);
? ??
}
}
2015-10-28
System ?的首字母用大寫
2015-10-28
安裝個(gè)myeclipse 把代碼放到里面運(yùn)行,新手最長見的就是符號用的中文符號! 那里面能看出來的