Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About Wrapper classes

 
omkar patkar
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does "radix" found in wrapper classes (Integer,Character etc.,) of java mean?

Whats the use of radix ?
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "radix" is the base used to parse the String into an int. For example, you may have a integer as a hexadecimal String (such as "0x4C5F"), so you would specify the radix as 16.

Layne
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic