Re: C-like functionality in numeric output

2000-03-28 Thread Jacob Nikom
Thank you Cyntia, I have read this docs and found that it is easier to convert leading zeroes to spaces by myself. Regards, Jacob Nikom Cynthia Jeness wrote: > > Jacob, > > I also think that this should be part of standard Java; however, here is > a paragraph from the Javadoc supplied with J

Re: C-like functionality in numeric output

2000-03-27 Thread Juergen Kreileder
> Jacob Nikom writes: Jacob> I used DecimalFormatter class: Jacob> DecimalFormat myFormatter = new DecimalFormat(""); Jacob> String iString = myFormatter.format(myNumber); Jacob> However, what I got was: Jacob> 0001 Jacob> 0012 Jacob> 0344 Jacob> 1557

C-like functionality in numeric output

2000-03-27 Thread Jacob Nikom
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(""); String iString = myForma