I have an integer 100
, how do I format it to look like 00000100
(always 8 digits long)?
Answer
Try this:
String formattedNumber = String.format("%08d", number);
In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...
No comments:
Post a Comment