Any one has an idea how to support?

package com.codegym.task.task08.task0812;
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
/*
Longest sequence
1. Create a list of numbers.
2. Use the keyboard to add 10 numbers to the list.
3. Display the length of the longest sequence of repeating numbers in the list.
Example for the list 2, 4, 4, 4, 8, 8, 4, 12, 12, 14:
3
The value is 3, because the longest sequence of repeating numbers is three fours.
*/
public class Solution {
public static void main(String[] args) throws IOException {
//write your code here
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
ArrayList<Integer> numbers = new ArrayList<>();
for (int i = 0; i < 10; i++) {
int readLine = Integer.parseInt(bufferedReader.readLine());
numbers.add(readLine);
}
ArrayList<Integer> newNumbers = new ArrayList<>();
for (int i = 0; i < numbers.size(); i++) {
int result = 0;
for (int j = i+1; j < numbers.size(); j++) {
Integer first = numbers.get(i);
Integer second = numbers.get(j);
if (first.equals(second)) {
result++;
} else {
newNumbers.add(result);
break;
}
}
}
int max = newNumbers.get(0);
for (Integer newNumber : newNumbers) {
if (max < newNumber) {
max = newNumber;
}
}
System.out.println(max);
}
}