編譯不過(guò)是哪里出現(xiàn)問(wèn)題?仔細(xì)檢查沒(méi)檢查出問(wèn)題,求指教!
運(yùn)行失敗
HelloWorld.java:36: error: class, interface, or enum expected
}
^
1 error 是什么問(wèn)題,編譯不過(guò)?附加代碼如下
運(yùn)行失敗
HelloWorld.java:36: error: class, interface, or enum expected
}
^
1 error 是什么問(wèn)題,編譯不過(guò)?附加代碼如下
2018-02-27
舉報(bào)
2018-05-29
最簡(jiǎn)單代碼
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==>"+(one+two));
??????? System.out.println("three+=one==>"+(three+=one));
??????? System.out.println("three-=one==>"+(three-=one));
??????? System.out.println("three*=one==>"+(three*=one));
??????? System.out.println("three/=one==>"+(three/=one));
??????? System.out.println("three%=one==>"+(three%=one));
?? ?}
}
2018-05-15
最底下多了兩個(gè)括號(hào)({})
2018-03-26
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) ;
? ? ? ? three += one;
? ? ? ? ?System.out.println(three) ;
? ? ? ? three -= one;
? ? ? ? ? System.out.println(three) ;
? ? ? ? three *= one;
? ? ? ? ? System.out.println(three) ;
? ? ? ? three /= one;
? ? ? ? ?System.out.println(three) ;
? ? ? ? three %= one;
? ? ? ? System.out.println(three) ;?
? ? ? 你這樣寫(xiě)應(yīng)該就可以了
? ? ? ??
2018-02-27
36行是不是多了個(gè)括號(hào)。。
2018-02-27
14行代碼反斜杠你大寫(xiě)了
2018-02-27
除法參數(shù)類(lèi)型不匹配
2018-02-27
36行 看下