ZhengYQ
2015-08-05 18:09
为什么要这样写?
studentList.add(new Student(1 + "", "yyz"));
studentList.add(new Student(2 + "", "cl"));
studentList.add(new Student(3 + "", "zyq"));
不这样写?有何区别?
studentList.add(new Student("1", "yyz"));
studentList.add(new Student("2", "cl"));
studentList.add(new Student("3", "zyq"));
没区别
Java入门第三季
409792 学习 · 4340 问题
相似问题