private static int [ ] [ ] getPowerSet ( int [ ] set ) { int [ ] [ ] sets = new int [ getPowerSetSize ( set . length ) ] [ ] ; getPowerSet ( set , 0 , null , sets , 0 ) ; return sets ; }
Returns all possible subsets except null and full set .