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);
}
}
public class HelloWorld{
public static void main(String[] args) {
System.out.println("慕课网"+"hobby");
}
}
这样就行了方便又简单
public class HelloWorld{
public static void main(String[] args) {
String hobby="慕课网";
System.out.println(“”+hobby);
}
}
pubulic class HelloWord{
public static void main(String[]ages){
String hobby="慕课网";
System.out.prinln(hobby);
}
}
"慕课网";这行,你最后打的是中文的;,应该改成英文的;
慕课网打完之后;用的是中文吧