• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
munir hussain
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



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
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15495
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50277
80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic