Re: Printing number with leading space instead of zero or nothing?
- From: TechBookReport <tbr@xxxxxxxxxx>
- Date: Wed, 31 Aug 2005 14:46:38 +0100
Johannes Beekhuizen wrote:
Hallo,
I like to show a number as e.g. " 8" instead of "8" or "08". I looked at text.DecimalFormat, but did not find a way to do it.
Is there a way exceopt using an if-statement?
Groetjes,
Hans.
Take a look at printf, added to Java 1.5/5.0.
Pan -- TechBookReport Java book reviews: http://www.techbookreport.com/JavaIndex.html .
- Follow-Ups:
- Re: Printing number with leading space instead of zero or nothing?
- From: Johannes Beekhuizen
- Re: Printing number with leading space instead of zero or nothing?
- References:
- Printing number with leading space instead of zero or nothing?
- From: Johannes Beekhuizen
- Printing number with leading space instead of zero or nothing?
- Prev by Date: Re: Need tool that finds all types of a certain scope...
- Next by Date: Re: Printing number with leading space instead of zero or nothing?
- Previous by thread: Printing number with leading space instead of zero or nothing?
- Next by thread: Re: Printing number with leading space instead of zero or nothing?
- Index(es):