how to pad a strng with a binary number code example
Example: java integer to binary string with leading zeros
int n = 1000;
String.format("%16s", Integer.toBinaryString(n).replace(' ', '0');
int n = 1000;
String.format("%16s", Integer.toBinaryString(n).replace(' ', '0');