You are viewing a single comment's thread. Return to all comments →
**Java 8 Generic Solution **
public static <E> void printArray(E[] arr){ for(int i=0; i<arr.length; i++){ System.out.println(arr[i]); } }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 21: Generics
You are viewing a single comment's thread. Return to all comments →
**Java 8 Generic Solution **