irborrero
7/14/2019 - 6:46 PM

Generic Elements

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