Not ignoring 0 on Java : <p>I need help, I have an <code>int num = 0000;</code> but on <code>System.out.print(num);</code> it only shows like this: <code>0</code>.
I would like to know what can I do if I have <code>num = 0111;</code> or <code>num = 0011;</code> or <code>num = 0001</code> and I want to show the 0 before the number, so the final result can be <code>0001</code> and not <code>1</code>.
Thanks!</p>
