我想問問在哪錯了
public class HelloWorld{
? ? public static void main(String[] args) {
String h="我愛慕課網(wǎng)";
? ? String g="widcbgp.cn";
? ? System.out.println("h");
? ? System.out.println("g");
}
}
public class HelloWorld{
? ? public static void main(String[] args) {
String h="我愛慕課網(wǎng)";
? ? String g="widcbgp.cn";
? ? System.out.println("h");
? ? System.out.println("g");
}
}
2016-02-22
舉報
2016-03-02
你的錯誤是idcbgp.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="我愛慕課網(wǎng)";
? ? ? String netWrok="widcbgp.cn";
? ? ? System.out.println("myLove");
? ? ? System.out.println("netWrok");
? } ?
}
2016-02-22
最后兩行輸出內(nèi)小括號里的引號去掉。
加了引號的話輸出的是你引號里面的內(nèi)容
2016-02-22
String h="我愛慕課網(wǎng)";?
最后的分號要在英文輸入狀態(tài)下輸入才行。