求大神指導(dǎo).自己沒找出錯誤
public class HelloWorld{
? ? public static void main(String[] args) {
String myname="我愛慕課網(wǎng)";
String $hobby1="idcbgp.cn";
System.out.println(myname);
System.out.println($hobby1);
}
}
public class HelloWorld{
? ? public static void main(String[] args) {
String myname="我愛慕課網(wǎng)";
String $hobby1="idcbgp.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 = "我愛慕課網(wǎng)";
?? ???? String webSite = "idcbgp.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
驗證是嚴格驗證,所以結(jié)果雖然對了,但是與驗證的內(nèi)容不符,修改下就可以了x100nbsp;=nbsp;x1nbsp;+(nnbsp;-nbsp;1)*d要避免int[]res=int[7]這樣的寫法,可移植性很差。寫成int[]res=int[scores.length];
2017-03-17
最新版Eclipse Neon.2 環(huán)境下測試沒有任何問題
應(yīng)該沒有錯誤
請詳細描述一下你的代碼是如何報錯的。
2017-03-17
你的沒有錯,重新編譯下
2017-03-17
老鐵,這代碼沒毛病