請問哪里有問題,多謝指導
public class HelloWorld{
? ? public static void main(String[] args) {
String Love="我愛慕課網";
? ? ? ? System.out.println(Love);
? ? ? ? String Love="www.xianlaiwan.cn";
? ? ? ? System.out.println(Love);
}
}
public class HelloWorld{
? ? public static void main(String[] args) {
String Love="我愛慕課網";
? ? ? ? System.out.println(Love);
? ? ? ? String Love="www.xianlaiwan.cn";
? ? ? ? System.out.println(Love);
}
}
2016-10-06
舉報
2016-10-06
public class HelloWorld{
? public static void main(String[] args) {
??? String Love="我愛慕課網";
??? System.out.println(Love);
??? Love="www.xianlaiwan.cn";
??? System.out.println(Love);
? }
}
2016-10-06
一樓正解
2016-10-06
String Love="www.xianlaiwan.cn";?請將String 去掉, Love 已經聲明類型了,不用再聲明了。