Possible Duplicate:
Algorithm to return all combinations of k elements from n
The combination can be formed with 3 digits from 1,2,3,4 such a way that d1 < d2 < d3 and so on.
Eg: 123,124,234 ...
n = 4 and k = 3
How do we do this ? Any clues as to how do we do this n choose k in java ?