code to get all combinations

I want code to get all combinations of a word for eg., i have word ABCDE, i should get all the combinations of this word like AB,ABD,ABE etc.,please help me
[197 byte] By [b_pavan] at [2007-9-30 2:45:02]
# 1
Sounds like a good homework assignment to me. We did our share of that already, now it's your turn. :-)
gweedo at 2007-6-29 10:28:45 > top of Java-index,Archived Forums,Socket Programming...