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);
    }
}
我用的eclipse环境,你用的什么环境呢?
可以是你的IDE没有配置好,你可以试试最简单的代码能不能跑