为什么不能运行
public class HelloWorld {
public static void main(String[] args) {
//定义字符串
String hobby = "慕课网";
String url = new String("WWW.IMOOC.COM");
//输出字符串
System.out.println("hobby:" + hobby);
System.out.println("url:" + url);
}
}
public class HelloWorld {
public static void main(String[] args) {
//定义字符串
String hobby = "慕课网";
String url = new String("WWW.IMOOC.COM");
//输出字符串
System.out.println("hobby:" + hobby);
System.out.println("url:" + url);
}
}
2021-04-01
举报