I have several groups, each having multiple properties. For e.g. G1 (p11, p12, p13 ...) G2 (p21, p22, p23, ...) and so on.
I want to create all possible combination of properties like (p11, p21), (p12, p21), (p13, p21) and so on.
How to do this in Java ? Can anyone point me to an algorithm ?
Is it equivalent to finding the cartesian product of the groups (sets)