SyntaxFix
Write A Post
Hire A Developer
Questions
You can convert List<> to Set<>
List<>
Set<>
Set<T> set=new HashSet<T>(); //Added dependency -> If list is null then it will throw NullPointerExcetion. Set<T> set; if(list != null){ set = new HashSet<T>(list); }