菲尔活该
2015-11-30 09:49
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没有配置好,你可以试试最简单的代码能不能跑
Java入门第一季(IDEA工具)升级版
1165547 学习 · 17586 问题
相似问题