File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
number format question
Joined: Aug 01, 2006
Apr 30, 2010 08:30:58
may i know what should i do if i want print 0 as 0000 and 11 as 0011 999 as 0999... it seems int a =0000 prints only 0 not the one i want.
please let me know how to format these number and let me know if there is any method to accomplish this task.
Joined: Mar 18, 2003
Apr 30, 2010 08:49:45
I suggest you take a look at the
Joined: Oct 13, 2005
Apr 30, 2010 09:28:28
Jonas Isberg wrote:
I suggest you take a look at the java.util.Formatter class.
Agree, but you will probably find this
Java™ Tutorials page
easier to understand.
I agree. Here's the link:
subject: number format question
Shift operators !
lang fund Ques from dan mock exam
Shift operator doubt
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015