• + 3 comments

    Java solution - passes 100% of test cases

    From my HackerRank solutions.

    class Printer {
        public <T> void printArray(T[] array) {
            for (T item : array) {
                System.out.println(item);
            }
        }
    }
    

    Let me know if you have any questions.