Android Utililty Methods Int to Binary Convert

List of utility methods to do Int to Binary Convert

Description

The list of methods to do Int to Binary Convert are organized into topic(s).

Method

StringdigitToBinary(int digit)
digit To Binary
return String.format("%4s", Integer.toBinaryString(digit)).replace(
        " ", "0");
StringdigitToBinary(String digit)
digit To Binary
return String.format("%4s",
        Integer.toBinaryString(Integer.valueOf(digit, 10)))
        .replace(" ", "0");