class Utils {

    public static int maxOfMostFreq(int... items) {
        ArrayList<Integer> list = new ArrayList<>(items.length);
        for (int item : items) list.add(item);
        return maxOfMostFreq(list);
    }

}