public static void printArray(final int[] array) {
        int max = 5;
        for (int value : array) {
            System.out.print(value + ", ");
            max--;
            if (max < 0) {
                break;
            }
        }
    }