не пойму, при чем тут 150 и почему не работает. Проверял на 1 1 1 150 150 150 150 150 150 150
public class Solution {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));//напишите тут ваш код
        ArrayList<Integer> list = new ArrayList<>();
        int counter = 0;
        int temp = 1;
        for(int i=0; i<10; i++){
            list.add(Integer.parseInt(reader.readLine()));
        }
        for (int i=1; i<10; i++){

            if ((list.get(i) == list.get(i-1))) {temp++;}
            else{temp = 1;}
            if (temp>counter) {counter = temp;}
            else {}
            //System.out.println(i + " temp=" + temp + " " + "counter=" + counter);
        }
        System.out.println(counter);
    }