It's not a secret anymore!*
The moose likes Beginning Java and the fly likes how to convert a hex or binary number to decimal and vice versa using a any java mehtod Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to convert a hex or binary number to decimal and vice versa using a any java mehtod" Watch "how to convert a hex or binary number to decimal and vice versa using a any java mehtod" New topic
Author

how to convert a hex or binary number to decimal and vice versa using a any java mehtod

munir hussain
Greenhorn

Joined: Mar 05, 2009
Posts: 5



how to convert a hex or binary number to decimal and vice versa using a any java mehtod, can any one help.
and one more thing that can any one explain how computer store and retrieve - sign . i am so much confusd with left and right shifts

your help will be appreciated.
regards
munir


muneer hussain ali
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Welcome to JavaRanch.

The forum that you posted this in is for announcing your result if you did a Sun certification exam, and not for asking Java questions. I will move this topic to a more appropriate forum. Please carefully choose one forum next time you post a topic.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37891
    
  22
Please explain what you want: have you got a String in hex which you want to parse to an integer? There are methods for doing that sort of thing in the Integer class.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to convert a hex or binary number to decimal and vice versa using a any java mehtod
 
Similar Threads
do java Api provide methods to convert number from binary to decimal or HEXA ,Octal
Shift operators !
Binary conversion help
What's the difference
conversion of binary and hex to decimal and about left/right shift