求大神指導.自己沒找出錯誤
public class HelloWorld{
? ? public static void main(String[] args) {
String myname="我愛慕課網";
String $hobby1="www.xianlaiwan.cn";
System.out.println(myname);
System.out.println($hobby1);
}
}
public class HelloWorld{
? ? public static void main(String[] args) {
String myname="我愛慕課網";
String $hobby1="www.xianlaiwan.cn";
System.out.println(myname);
System.out.println($hobby1);
}
}
2017-03-17
舉報
2017-03-19
public class HelloWorld{
??? public static void main(String[] args) {
?? ???? String love = "我愛慕課網";
?? ???? String webSite = "www.xianlaiwan.cn";
?? ???? System.out.println(love);
?? ???? System.out.println(webSite);
?? ?}
}
請問大神這代碼錯在哪里?
報錯如下:/85/1221/ASWV/HelloWorld.java:3: error: illegal character: '\uff1b'
?? ???? String love = "?????"?
?? ????????????????????????? ^
1 error
2022-03-23
驗證是嚴格驗證,所以結果雖然對了,但是與驗證的內容不符,修改下就可以了x100nbsp;=nbsp;x1nbsp;+(nnbsp;-nbsp;1)*d要避免int[]res=int[7]這樣的寫法,可移植性很差。寫成int[]res=int[scores.length];
2017-03-17
最新版Eclipse Neon.2 環境下測試沒有任何問題
應該沒有錯誤
請詳細描述一下你的代碼是如何報錯的。
2017-03-17
你的沒有錯,重新編譯下
2017-03-17
老鐵,這代碼沒毛病