File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "numbers" Watch "numbers" New topic


shabbir zakir
Ranch Hand

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

Joined: Sep 23, 2000
Posts: 3599
There is a static method toBinaryString(int) in Integer class. Play with it a little and you'll understand.
Get Certified, Guaranteed!
(Now Revised for the new Pattern)

Enthuware - Best Mock Exams and Questions for Oracle 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
Hope they help.
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 agree. Here's the link:
subject: numbers
It's not a secret anymore!