Ошибка здесь, я правильно понимаю? ArrayList<Integer> list = new ArrayList<Integer>(); for(Integer a : array){ list.add(a);