Почему не работает закомментированный участок кода?
while (fileReader.ready()){
            int a = Integer.parseInt(fileReader.readLine());
            if (a %2 == 0){
                list.add(a);
            }
            //if ((Integer.parseInt(fileReader.readLine()))%2 == 0){
                //list.add(Integer.parseInt(fileReader.readLine()));
            //}
        }