You are viewing a single comment's thread. Return to all comments →
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.
Seems like cookies are disabled on this browser, please enable them to open this website
Java Generics
You are viewing a single comment's thread. Return to all comments →
Java solution - passes 100% of test cases
From my HackerRank solutions.
Let me know if you have any questions.