Не понимаю, в чем ошибка
package com.javarush.task.task08.task0812;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
/*
Cамая длинная последовательность
*/
public class Solution {
public static void main(String[] args) throws IOException {
//напишите тут ваш код
int count = 1, max = 0, max1 = 0, b;
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
List<Integer> List = new ArrayList();
for(int i = 0; i < 10; i++) {
int a = Integer.parseInt(reader.readLine());
List.add(a);
}
for(int i = 0; i < 10; i++) {
b = List.get(i);
for(int j = 0; j < 10; j++) {
if (b == List.get(j));
count++;
}
if(count > max) {
max = count;
count = 1;
}
}
System.out.println(max);
}
}