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