I have one Arraylist of String and I have added Some Duplicate Value in that. and i just wanna remove that Duplicate value So how to remove it.
Here Example I got o
Using java 8:
public static List removeDuplicates(List list) { return list.stream().collect(Collectors.toSet()).stream().collect(Collectors.toList()); }