I am stuck at a program, where I have to print all the subsets of a given arguments,
I printed n-binary digit using recursion but i cant not use the same algorithm.

..lets say

% java SubSet acd

{,a,c,d }
which will print
{a}
{c}
{d}
{a,c},
{a,d},
{c,d},
{a,c,d}
{ }

I cant use any existing classes or methods..

Any help guys ??

Thanks you

There was a thread on exactly this problem here a few weeks ago - you should be able to track it down without too much problem.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.