Recursion : all subsequences

i am able to find all the subsequences but not able to print them in lexographical order using print approach in recursion.

HI @Sejalrathi,
To sort a array list in lexographical order use Collections.sort(“name of the array list”);