aspose file tools
The moose likes Beginning Java and the fly likes  how octal numbers can be print Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark " how octal numbers can be print" Watch " how octal numbers can be print" New topic
Author

how octal numbers can be print

humair khan
Greenhorn

Joined: Aug 19, 2001
Posts: 2
i want to print octal numbers like that
not like (1)
i want (01) or (001)
ok
pls help me

------------------
send me excercises about
biggener level


send me excercises about <BR>biggener level
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Since the way that you normally get digits in Octal is through Integer.toOctalString(), and that method does not support printing them in this way, you'll have to do something like the following:



-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how octal numbers can be print
 
Similar Threads
The Literal Octal 08 of type int is out of range
hexadecimal
Octals, Decimals and Hexadecimals
how to do octal number comparision
Variables names in Hex and Octal form