This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
If you don't bother in receive those convertions in a String format, you can use the Integer's methods:
However, if you declare an int variable and atribute a number prefixed with the zero digit, you assigning an actal value. The same happens for an hax value, if you prefix the number with "0x".
's<br />Mantu<br /> <br />Sorry for my poor english...<br /> <br /><i>Time after time we lose sight of the way. Our causes cant see their effects</i> - Neil Peart
Joined: Mar 30, 2005
thanks a lot but I have already tried that may be I need to fully illustrate what I want I have a number say 236009 then convert to string then to octet and finally to hexidecimal output is this possible???
hello black carlos......... my suggestion to you is to write your own methods for conevrting to binary and to octal rather that using any java method. This will help you to improve your programming skill.