Answers for "how to delete duplicated elements of a list"

0

how to delete duplicated elements of a list

Set<String> set = new HashSet<>(yourList);
yourList.clear();
yourList.addAll(set);
Posted by: Guest on June-06-2021

Code answers related to "how to delete duplicated elements of a list"

Browse Popular Code Answers by Language