I have a method in java let say:
public List<Data> getData(String[] str, Integer[] num, String ss);
I have to pass two array and a non-array arguments as shown above, this method returns List of objects of type Data.
Now, the question is how to create a list of objects which contain every possible combination of elements of the array.
i.e : Object with elements :
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);
Any clue will be appreciated.