Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java remove duplicates

public static <T> ArrayList<T> removeDuplicates(ArrayList<T> list){
  Set<T> set = new LinkedHashSet<>(list);
  return new ArrayList<T>(set);
}
Source by devqa.io #
 
PREVIOUS NEXT
Tagged: #java #remove #duplicates
ADD COMMENT
Topic
Name
9+2 =