final int number = 1; // my formatter with leading zeros final DecimalFormat myFormatter = new DecimalFormat( "00" ); String out = myFormatter.format( number );
For more details see this page.
final int number = 1; // my formatter with leading zeros final DecimalFormat myFormatter = new DecimalFormat( "00" ); String out = myFormatter.format( number );
No comments:
Post a Comment