Attempting to Create HashSets

Discussion in 'Spigot Plugin Development' started by MineOrity, May 11, 2016.

  1. This is probably very easy, but I need a way to use public voids, or something similar, to create HashSets. Example:


    Code (Text):
    @EventHandler
    public void onEnable() {

    for (String name : getConfig().getStringList("Chat.Channels")) {
    CreateHash(name);
    }
    }

    public void CreateHash(String name) {
     
      create new hashset in here

    }
    I need it to automatically create hashsets.
     
  2. Do you know how to make a HashSet in the first place?
     
  3. Yes, I am just confused & sick atm.
     
  4. How to?
     
  5. HashSet<Collection> name = new HashSet<Collection>();
     
  6. I need to be able to access them from another class.