public class HelloWorld{
public static void main(String[] args) {
String hobby="慕课网";
System.out.println(hobby);
}
}
试试这个。。。。(不知对错)
public class HelloWorld{
public static void main(String[] args) {
String hobby="慕课网";
System.out.println("慕课网"+hobby);
hobby="慕课网";
System.out.println("慕课网"+hobby);
}
}
要输出“”慕课网“”这三个字吧!
public class HelloWorld{
public static void main(String[] args) {
String hobby="HELLO 慕课网";
System.out.println(hobby);
}
}
你的分号不对 用英文