We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Day 21: Generics
Day 21: Generics
Sort by
recency
|
352 Discussions
|
Please Login in order to post a comment
Typescript
public void printArray(T[] list){ for(T type: list){ System.out.println(type); }
in TS
From the test cases, it seems that duplicates are removed, however the description of the problem does not specify how the output is ordered, and how some of the entries are ignored.