Organizational Research By

Surprising Reserch Topic

Question:Change HashSet for LinkedHashSet:


 

 
 
Hash table and linked list implementation of the Set interface, with predictable iteration order.
 
Also, remember to always program to an interface:
 
public static void deleteDuplicates(List list){
    List newList = new ArrayList();
    Set set = new LinkedHashSet();
    //rest of your code
}
asked Sep 13, 2013 in Java Interview Questions by rajesh
edited Sep 12, 2013
0 votes
22 views



Related Hot Questions



Government Jobs Opening


...