Number Format
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Subash_Srinivasan
Posted On:   Wednesday, June 19, 2002 01:35 PM

Is there any method available in java API to convert 1 to 00000001 and 3 to 00000003 56 to 00000056 and so on..?

Thanks in advance.

Re: Number Format

Posted By:   Subash_Srinivasan  
Posted On:   Wednesday, June 19, 2002 01:43 PM

I found it


NumberFormat format = new DecimalFormat("00000000");
System.out.println(format.format(123456));
About | Sitemap | Contact