哪里錯(cuò)了,,求大神指點(diǎn)
public class HelloWorld{
? ? public static void main(String[]args){
? ? ? ? String city="青島";
? ? ? ? System.out.println=("我的家鄉(xiāng)在: "+city);
? ? }
}
public class HelloWorld{
? ? public static void main(String[]args){
? ? ? ? String city="青島";
? ? ? ? System.out.println=("我的家鄉(xiāng)在: "+city);
? ? }
}
2018-12-27
舉報(bào)
2019-01-14
樓上println多了個(gè)g
2019-01-06
pingtIn 我也報(bào)錯(cuò),用print就不會(huì)
2018-12-27
public class HelloWorld{
? ? public static void main(String[]args){
? ? ? ? String city="青島";
? ? ? ? System.out.println("我的家鄉(xiāng)在: "+city);
? ? }
}
2018-12-27
public class HelloWorld{
? ? public static void main(String[]args){
? ? ? ? String city="青島";
? ? ? ? System.out.println("我的家鄉(xiāng)在: "+city);
? ? }
}
2018-12-27
輸出一行多了個(gè)=? ? println后面直接小括號(hào)