title: best way to pass many arguments to a method in Java
body: <p>I have a method </p>
  
  <pre><code>makeSomeObject(String a,String b,KeyValue...){}
  
  //method call
  Obj.makeSomeObject(stringa,stringb,new KeyValue(String1,String2),new KeyValue(String3,String4),new KeyValue(String4,String5));
  </code></pre>
  
  <p>How can I refactor my makeSomeObject() method so that I can elegantly pass multiple KeyValue pairs to it so that the method call is cleaner and easy to read.</p>