public class HelloWorld{
public static void main(String[] args) {
int one = 10 ;
int two = 20 ;
int three = 0 ;
three=one+two;
Syetem.out.println("three = one + two ==>"+three);
three+=one;
Syetem.out.println("three += one ==>"+three);
three-=one;
Syetem.out.println("three -= one ==>"+three);
three*=one;
Syetem.out.println("three *= one ==>"+three);
three/=one;
Syetem.out.println("three /= one ==>"+three);
three%=one;
Syetem.out.println("three %= one ==>"+three);
}
}
右边显示6 errors
兄弟,你的System都没有写对啊(System.out.println被你写成了 Syetem.out.println),写代码的时候注意细节哦。如果你用eclipse写的话马上就会提醒你这个错误的
你写的时候不会报错吗
System.out.println