title: Java: HashSet multiple types
body: <p>I have a program that I have to use a HashSet for. My question arises from the fact that HashSets mainly contain one object, but if I wish to send information to the other class, it takes three objects: one string, one int, and one boolean.
  The assignment says that I must use a HashSet</p>
  
  <p>Constructor I am trying to send information to:</p>
  
  <pre><code>public Magic (String name, int size, boolean isVisible)
  </code></pre>
  
  <p>I have a class that is supposed to be sending sets of spells containing <code>name</code>, <code>size</code>, and <code>isVisible</code>.</p>
  
  <p>Magic.go() class:</p>
  
  <pre><code>public void go()
  {
      int i = 0;
      while (i &lt; size) {
          if (isVisible == true) {
              System.out.println(name + "!");
          }
          i++;
      }
  } 
  </code></pre>