File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes About Wrapper classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "About Wrapper classes" Watch "About Wrapper classes" New topic
Author

About Wrapper classes

omkar patkar
Ranch Hand

Joined: Aug 25, 2005
Posts: 231
What does "radix" found in wrapper classes (Integer,Character etc.,) of java mean?

Whats the use of radix ?


Thanks and Regards
Omkar Patkar (SCJP 1.4)[url]http://javacollectionsnotes.blogspot.com[/url] | [url]http://omkar-myscjpexp.blogspot.com[/url]
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
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


Java API Documentation
The Java Tutorial
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: About Wrapper classes
 
Similar Threads
primitive conversion
Interger.parseInt(String str, int radix), Long.parseLong(String str, int radix)
Best Java Memory Aid Contest
valueOf() method for Character Wrapper Class
a wrapper class question