我想問問在哪錯了
public class HelloWorld{
? ? public static void main(String[] args) {
String h="我愛慕課網";
? ? String g="wwww.xianlaiwan.cn";
? ? System.out.println("h");
? ? System.out.println("g");
}
}
public class HelloWorld{
? ? public static void main(String[] args) {
String h="我愛慕課網";
? ? String g="wwww.xianlaiwan.cn";
? ? System.out.println("h");
? ? System.out.println("g");
}
}
2016-02-22
舉報
2016-03-02
你的錯誤是www.xianlaiwan.cn? 多了一個w
2016-02-22
System.out.println(myLove);
System.out.println(netWork);//是netWork吧,而不是netWrk
2016-02-22
我也不知道,我這樣寫都是可以運行的。
public class HELP {
? public static void main(String[] args) {
? String myLove="我愛慕課網";
? ? ? String netWrok="wwww.xianlaiwan.cn";
? ? ? System.out.println("myLove");
? ? ? System.out.println("netWrok");
? } ?
}
2016-02-22
最后兩行輸出內小括號里的引號去掉。
加了引號的話輸出的是你引號里面的內容
2016-02-22
String h="我愛慕課網";?
最后的分號要在英文輸入狀態下輸入才行。