Java Bit String From toBits(int b)

Here you can find the source of toBits(int b)

Description

to Bits

License

Open Source License

Declaration

public final static String toBits(int b) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public final static String toBits(int b) {
        return Integer.toBinaryString(b).replace(' ', '0');
    }/*from   w  w w.j av  a  2s . c o m*/
}

Related

  1. toBit(boolean f)
  2. toBit(byte value, int index)
  3. toBitMask(int numBits)
  4. toBits(final byte b)
  5. toBits(int b)
  6. toBits(long value, int length)
  7. toBitsArray(byte[] bytes, int bitCount)
  8. toBitString(byte value)