问答详情
源自:6-6 学生选课---尝试对学生序列排序

求大神解答!

为什么要这样写?

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"));


提问者:ZhengYQ 2015-08-05 18:09

个回答

  • 星际怪物
    2015-08-05 22:02:31

    没区别