为什么这样写
studentList.add(new Student(random.nextInt(1000)+"","Mike"));中的new Student(random.nextInt(1000)+"","Mike")这是什么格式,前面的student不是Student(String id,String name)这个样子吗,之前添加也是student("xx","xx")的,他这个+"","是啥意思啊
studentList.add(new Student(random.nextInt(1000)+"","Mike"));中的new Student(random.nextInt(1000)+"","Mike")这是什么格式,前面的student不是Student(String id,String name)这个样子吗,之前添加也是student("xx","xx")的,他这个+"","是啥意思啊
2019-10-12
举报