This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • 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: 15214
36
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
Posts: 48641
56
  • 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