Java integer ke string biner dengan nol terkemuka

int n = 1000;
String.format("%16s", Integer.toBinaryString(n).replace(' ', '0');
Super Stoat