Here’s a quote from: http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Formatter.html
‘d’ ‘\u0054’ Formats the argument as a decimal integer. The
localization algorithm is applied.If the ‘0’ flag is given and the value is negative, then the zero padding will occur after the sign.
I feel frustrated, trying to learn this formatting thing but that tutorial is just so cluttered and messy.
String.format("%03d", int);
I am trying to understand where exactly this whole \u0054 should go but I have just no idea, I must be missing something very obvious or something…
Edit:
What I want to achieve:
Positive 10: 010
Negative 10: -10
Negative result I want to achieve: -010
\u0054isdYou can do