import java.util.Set;
      import java.util.List;
      
      Set<Object> newSet = new HashSet<>(myList);
      Java language logo

      Convert a list into a set

      set
      list
      Java Public Recipes

      convert a list into a set

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.