i am able to find all the subsequences but not able to print them in lexographical order using print approach in recursion.
Recursion : all subsequences
HI @Sejalrathi,
To sort a array list in lexographical order use Collections.sort(“name of the array list”);