• + 0 comments

    My 2 cents in Java:

    public <E> void printArray(E[] array) {
            for(E element: array) {
                System.out.println(element);
            }
        }