請問大佬們,這個哪兒有錯 ?
public class HelloWorld{
? ? public static void main(String[] args) {
? ? String city;
? ? ? ? ? ? ? ? city=“shanghai”;
? ? ? ? System.out.println(“我的家鄉(xiāng)在;”+city);
}
}
public class HelloWorld{
? ? public static void main(String[] args) {
? ? String city;
? ? ? ? ? ? ? ? city=“shanghai”;
? ? ? ? System.out.println(“我的家鄉(xiāng)在;”+city);
}
}
2021-07-02
舉報
2021-08-10
用""
2021-08-06
最后一句:println()中使用了(;)應(yīng)該使用(:)
2021-07-14
哪里錯了,我輸了一下可以運行啊

2021-07-02
=你想寫的定義