Format String become 0001, 0010 etc

Posted by trycatch4j on Stack Overflow See other posts from Stack Overflow or by trycatch4j
Published on 2010-05-18T16:35:12Z Indexed on 2010/05/18 16:40 UTC
Read the original article Hit count: 173

Hi all.., I have number : 1, 2, 3, 4, 10

But I wanna print that number 0001 0002 0003 0004 0010

I have search in google, the keyword is number format. but I've got nothing, I just get, frmat decimal such ass 1,000,000.00. hope you can suggest me a reference or give me some problem solving.

Thanks,

© Stack Overflow or respective owner

Related posts about string-manipulation

Related posts about java