課程
/后端開發(fā)
/Java
/Java入門第一季(IDEA工具)
初學(xué)java,不懂哪里錯(cuò)了
2018-07-06
源自:Java入門第一季(IDEA工具) 3-3
正在回答
沒錯(cuò)吧。。。。
不好意思,最底下多了兩個(gè)大括號(hào)?
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);
? ? ? ??
int one = 10 ;
? ? ? ? three=one+two;
? ? ? ? System.out.println("three = one + two ==> "+three);
舉報(bào)
0基礎(chǔ)萌新入門第一課,從Java環(huán)境搭建、工具使用、基礎(chǔ)語法開始
3 回答哪里錯(cuò)了哪里錯(cuò)了哪里錯(cuò)了哪里錯(cuò)了哪里錯(cuò)了
4 回答這里哪里錯(cuò)了?
4 回答這哪里錯(cuò)了?
8 回答哪里錯(cuò)了?哪里錯(cuò)了?哪里錯(cuò)了
4 回答這哪里錯(cuò)了???
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2018-07-08
沒錯(cuò)吧。。。。
2018-07-08
不好意思,最底下多了兩個(gè)大括號(hào)?
2018-07-08
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);
? ? ? ??
2018-07-06
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);