int numbers[] = new int[] {1, 2, 3, 4, 4, 5, 6, 7, 7, 8, 8, 8, 9};
int number = Arrays.stream(numbers)
.filter(n -> n % 2 == 0)
.boxed()
.collect(
Collectors.groupingBy(
Function.identity(),
Collectors.counting()))
.entrySet()
.stream()
.max(Map.Entry.comparingByValue(Long::compareTo))
.map(Map.Entry::getKey)
.get();