System.out.print("变化为:"); for (People people : lp) { System.out.print(" "+people.getName()); } System.out.println(":"+lp.get(num-1).getName()); People p = lp.get(num-1); while(lp.contains(p)){//删除数组 lp.remove(p); }。