Java Integer to Binary String con ceros principales
int n = 1000;
String.format("%16s", Integer.toBinaryString(n).replace(' ', '0');
Super Stoat
int n = 1000;
String.format("%16s", Integer.toBinaryString(n).replace(' ', '0');