Puoi farlo anche sfruttando la libreria standard:
codice:System.out.printf("%0" + width + "d%n", Integer.valueOf(Integer.toBinaryString(value)));
Puoi farlo anche sfruttando la libreria standard:
codice:System.out.printf("%0" + width + "d%n", Integer.valueOf(Integer.toBinaryString(value)));
effeffe