If current index is set to true in the boolean array then element at current index in the original array is part of the combination generated previously
if ( Flags [ i ] ) { System . out . print ( Indices [ i ] ) ; System . out . print ( " ▁ " ) ; ++ count ; } } System . out . println ( ) ; } }