title: All possible combination of n sets
body: <p>I have <code>n</code> Sets. Each Set has different number of elements. I would like to write an algorithm which give me all possible combinations from the sets. For example, let's say we have:</p>
  <pre><code>S1={1,2}, S2={A,B,C}, S3={$,%,£,!}
  </code></pre>
  <p>a combination should look like</p>
  <pre><code>C1={1,A,$}
  C2={1,A,%}
  ...
  </code></pre>
  <p>...and so on. The number of possible combination will be <code>2*3*4 = 24</code></p>
  <p>Please Help me to write this algorithm in Java.</p>