Почему так решилось: for (int i = 9999; i > -1; i--) { list.remove(i); } А так нет: for (int i = 0; i < 10000; i++) { list.remove(i); }