0
9
convert a list into a set
0 Comments
import java.util.Set; import java.util.List; Set<Object> newSet = new HashSet<>(myList);