public static void deleteNegativeElement(List<Integer> list){
Iterator<Integer> iterator = list.iterator();
while (iterator.hasNext()) {
if (iterator.next().intValue() < 0)
iterator.remove();
}
}
07-31
862