This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes numbers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "numbers" Watch "numbers" New topic
Author

numbers

shabbir zakir
Ranch Hand

Joined: Nov 12, 2000
Posts: 183
hi!
how does numbers are represanted in java.for instance how
number 4 is represented.how to convert any number in binary
Paul Anilprem
Enthuware Software Support
Ranch Hand

Joined: Sep 23, 2000
Posts: 3527
    
    9
There is a static method toBinaryString(int) in Integer class. Play with it a little and you'll understand.
-Paul.
------------------
Get Certified, Guaranteed!
(Now Revised for the new Pattern)
www.enthuware.com/jqplus


Enthuware - Best Mock Exams and Questions for Oracle/Sun Java Certifications
Quality Guaranteed - Pass or Full Refund!
Jane Griscti
Ranch Hand

Joined: Aug 30, 2000
Posts: 3141
Hi Shabbir,
I've some notes on working with binary, hex, and octal numbers at http://webhome.idirect.com/~jgriscti/oper/binhex.html.
Hope they help.
------------------
Jane
The cure for boredom is curiosity.
There is no cure for curiosity.
-- Dorothy Parker


Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: numbers
 
jQuery in Action, 3rd edition