So I have an ArrayList<String[]>
list which contains some String[]
that I need to get the combinations of.
So if list contained A = {a,b,c}
and B = {d,e,f}
I want to print
ad
,ae
,af
,bd
,be
,bf
,cd
,ce
,cf
I am just having trouble seeing how I would have one fixed array then get the other so I can iterate through that.
Edit: To clarify I am trying to do this for N String[]
so I cant just get the 0th and 1st element.