Printing all the subsequences and subsets in an array in Java

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