друзья, помогите разобраться. в Идее работает, запуск без проверки в приложении - работает, а валидатор не пропускает... import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) throws Exception { List<Integer> list=new ArrayList<Integer>(); List<Integer> count=new ArrayList<Integer>(); BufferedReader str=new BufferedReader(new InputStreamReader(System.in)); for (int i=0; i<10; i++) list.add (Integer.parseInt(str.readLine())); int i=0; int Count=1; while (i<list.size()-1){ if (list.get(i)==list.get(i+1)) Count++; if (list.get(i)!=list.get(i+1)||i==list.size()-2) { count.add(Count); Count=1; } i++; } System.out.println(Collections.max(count)); } }