How can get the possible 3 digit combination from a number having more than 3 digits in java
<p>I/p: 5278<br>
Desired o/p: 527,278,785,852 (I manually did this).  but if number is large then its a problem.  </p>

<p>Note: Output should be in such way that no repeated combination.(i.e  in above combination there is a number 527 its enough and I don't want it's possible combination 257 or 725, etc in output, </p>

<p>How can I do this? Any clue?</p>

<p>EDIT:One important thing input digits are unique.To be more clear  at any time input cant have the value like 1123 0r 3455.</p>
