java里面问题在下面注释 public static void main(String[] args) {List employees = new ArrayList();// Employee employee = new Employee("李XX",25);// long currentTime = System.currentTimeMillis();// 获for (int i = 0; i < 100000; i++) {employee

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/26 18:30:54
java里面问题在下面注释publicstaticvoidmain(String[]args){Listemployees=newArrayList();//Employeeemployee=newE

java里面问题在下面注释 public static void main(String[] args) {List employees = new ArrayList();// Employee employee = new Employee("李XX",25);// long currentTime = System.currentTimeMillis();// 获for (int i = 0; i < 100000; i++) {employee
java里面问题在下面注释
public static void main(String[] args) {
List employees = new ArrayList();//
Employee employee = new Employee("李XX",25);//
long currentTime = System.currentTimeMillis();// 获
for (int i = 0; i < 100000; i++) {
employees.add(employee.clone());/
}

java里面问题在下面注释 public static void main(String[] args) {List employees = new ArrayList();// Employee employee = new Employee("李XX",25);// long currentTime = System.currentTimeMillis();// 获for (int i = 0; i < 100000; i++) {employee
第一个是:一个List集合,里面放的是一个实体类.
第二个是:新建一个实例对象,里面有姓名和年龄.
第三个是:获取系统当前毫秒时间.
第四个不知道:好像会报错吧