大家幫我看下這個有什么錯誤
public class HelloWorld{
? ? public static void main(String[] args) {
String hxw="我愛慕課網";
String ?sgg="www.xianlaiwan.cn";
? ? System.out.println(hxw);
? ? System.out.println(sgg);
}
}
public class HelloWorld{
? ? public static void main(String[] args) {
String hxw="我愛慕課網";
String ?sgg="www.xianlaiwan.cn";
? ? System.out.println(hxw);
? ? System.out.println(sgg);
}
}
2017-07-15
舉報
2017-07-16
自己去eclipse運行一下啊,人家立馬提示你那個分號有問題了=。=
2017-07-19
如果你完全按照答案的來寫,在錯的話可能就是符號的問題,,,分號是英文分號,,引號也是英文引號,,
2017-07-17
String hxw="我愛慕課網";這個分號是中文的分號,記得要用英文的分號,否則會報錯
2017-07-15
ublic class HelloWorld{
? ? public static void main(String[] args) {
? ? ? ? String myLove="我愛慕課網";
? ? ? ? String myURL="www.xianlaiwan.cn";
? ? ? ? System.out.println(myLove);
? ? ? ? System.out.println(myURL);
? }
}
我按照示例輸入之后為啥還不對
2017-07-15
沒有問題。
2017-07-15
嘗試過真的不懂再看·我也是剛學沒多久。
2017-07-15
網址的String sgg的sgg錯了。正確使String myURL.你應該按照要求寫的。我愛慕課網也錯了。