为什么总是运行成功输出错误
public class HelloWorld{
public static void main(String[] args) {
String hobby="imooc";
System.out.println("imooc:"+hobby);
hobby="imooc";
System.out.println("imooc:"+hobby);
}
}
public class HelloWorld{
public static void main(String[] args) {
String hobby="imooc";
System.out.println("imooc:"+hobby);
hobby="imooc";
System.out.println("imooc:"+hobby);
}
}
2019-01-08
举报