How to print all the subsequences and also subsets in an array in JAVA.Can anyone help me out.Thanks in advance. : )