Hi,
I tried to imitate the C-like functionality for numeric output
in Java. I hoped to format numeric output (integer) so that they
line up to the left like:
1
12
344
1557
etc.
I used DecimalFormatter class:
DecimalFormat myFormatter = new DecimalFormat("0000");
String iString = myFormatter.format(myNumber);
However, what I got was:
0001
0012
0344
1557
(The pattern "####" did not work at all)
Do you know, how I can get rid of leading zeroes and get
my formatting correctly?
Jacob Nikom
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]