[java] Find the most popular element in int[] array