課程
/后端開發
/Java
/Java入門第一季(IDEA工具)升級版
public class HelloWorld{ ? ?public static void main(String[] args) { ? ?String love = "我愛慕課網"; ? ? ? ?String web = "www.xianlaiwan.cn"; ? ? ? ?System.out.println(love); System.out.println(web); } }?
2016-01-30
源自:Java入門第一季(IDEA工具)升級版 2-5
正在回答
你的標點錯了,記得要用英文的標點符號
BuFang_Q 提問者
public?class?HelloWorld{ ????public?static?void?main(String[]?args)?{ ????????String?love?=?"我愛慕課網";//分號錯誤 ????????String?web?=?"www.xianlaiwan.cn"; ????????System.out.println(love);//分號錯誤 ????????System.out.println(web);//分號錯誤 ????} } 將你的代碼放入Eclipse中后,發現3個錯誤,建議你使用Eclipse來避免一些簡單的錯誤。 修正后: public?class?HelloWorld{ ????public?static?void?main(String[]?args)?{ ????????String?love?=?"我愛慕課網";//正確 ????????String?web?=?"www.xianlaiwan.cn";//正確 ????????System.out.println(love);//正確 ????????System.out.println(web);//正確 ????} }
package heheda;
public class fangqi {
? public void main(String[] args)?
? { ? ?
? String love = "我愛慕課網"; ? ? ? ?
? String web = "www.xianlaiwan.cn"; ? ? ??
? System.out.println(love);?
? System.out.println(web); } }
第一個逗號錯了。。。是中文的逗號
趙安東
舉報
0基礎萌新入門第一課,從Java環境搭建、工具使用、基礎語法開始
4 回答為啥運行錯誤,求大佬指教
3 回答為啥有的能運行有的不運行?求大神指點??!
4 回答求大神指點下這個算法結果為啥不對?結果為62
2 回答為什么這樣子會運行不出來,求大神指點
1 回答求大佬指教,為啥我的運行錯誤
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-01-30
你的標點錯了,記得要用英文的標點符號
2016-01-31
2016-01-30
package heheda;
public class fangqi {
? public void main(String[] args)?
? { ? ?
? String love = "我愛慕課網"; ? ? ? ?
? String web = "www.xianlaiwan.cn"; ? ? ??
? System.out.println(love);?
? System.out.println(web); } }
2016-01-30
第一個逗號錯了。。。是中文的逗號