title: Insert multiple values in hashSet Java
body: <p>The idea is to set different values from one class to another using the  interface.</p>
  <p>My code:</p>
  <pre><code>public Make(String name, int foundingYear, String founder) {
      this.name = name;
      this.foundingYear = foundingYear;
      this.founder = founder;
  }
  //other code
  </code></pre>
  <p>So I want to set those values in another class like this:</p>
  <pre><code>public record anotherClass (String name, String color, int hp) {
  
  Make make = new Make();
  Set&lt;Make&gt; makes = new HashSet&lt;&gt;();
  makes.add(&quot;name&quot;, 1995, &quot;founder&quot;);
  </code></pre>
  <p>The thing is when I'm trying to add values (<code>makes.add(&quot;name&quot;, 1995, &quot;founder&quot;);</code>) I can't do that, because it expects just one argument to be added of type <code>makes</code>. What I'm I doing wrong?</p>