為什么是這樣
public class HelloWorld{ ? ?public static void main(String[] args) { System.out.println("慕課網"); } } 為什么這樣就對了???直接改可以嗎?
public class HelloWorld{ ? ?public static void main(String[] args) { System.out.println("慕課網"); } } 為什么這樣就對了???直接改可以嗎?
2016-12-05
舉報
2016-12-06
public class HelloWorld
{
? ? public static void main(String[] args)
? ? ? ?{
? ? ? ? ? ? String hobby="慕課網";
? ? ? ? ? ? System.out.println(hobby);
? ? ? ?}
}
2016-12-05
任務
自我檢測時間到!
請在編輯器中,第 3 行輸入代碼實現定義一個變量 hobby ,保存“慕課網”這個字符串
運行結果為: 慕課網
public class HelloWorld{
?? public static void main(String[] args) {
?? ??? ?String hobby="慕課網";
?? ??? ?System.out.println(hobby);
?? ??? ?hobby="慕課網";
?? ???? System.out.println(hobby);?? ??? ?
?? ?}
}
現在OK了,謝謝。
2016-12-05
同上,你要把你錯的打錯來,才能幫你
2016-12-05
不是很懂你要問什么..你原本的錯誤是什么