能有小伙伴告诉我倒数第二和第三行是不是多余的?通是通过了,所以那两行是不是多写的?
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="慕课网";
System.out.println("慕课网"+hobby);
hobby="慕课网";
System.out.println("慕课网:"+hobby);
}
}
2016-06-21
举报