請大神指點一下,下面這代碼哪里出錯了???
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-11-30
我用的eclipse環(huán)境,你用的什么環(huán)境呢?
2015-11-30
可以是你的IDE沒有配置好,你可以試試最簡單的代碼能不能跑