class BitSetUtils {

  public static String toString(BitSet bits, int n) {
    StringBuilder sb = new StringBuilder();
    for (int i = 0; i < n; i++) {
      sb.append(bits.get(i) ? "1 " : "0 ");
    }
    return sb.toString();
  }

  private  BitSetUtils();

}