title: How to return multiple objects when passing two array arguments
body: <p>I have a method in java let say: </p>
  
  <pre><code>public List&lt;Data&gt; getData(String[] str, Integer[] num, String ss);
  </code></pre>
  
  <p>I have to pass two array and a non-array arguments as shown above, this method returns List of objects of type Data.</p>
  
  <p>Now, the question is how to create a list of objects which contain every possible combination of elements of the array.</p>
  
  <p>i.e : Object with elements :</p>
  
  <pre><code>getData(String[0] str, Integer[0] num, String ss);
  getData(String[0] str, Integer[1] num, String ss);
  getData(String[1] str, Integer[0] num, String ss);
  getData(String[1] str, Integer[1] num, String ss);
  </code></pre>
  
  <p>Any clue will be appreciated.</p>