Hi All,
If you see the wrapper classes you will find a method called parseXX(String str, int radix)
where XX is the name of the wrapper class
Now when I read the JLS I found out the following
Byte.parseByte("A",27) returns 10 //Not in JLS
Short.parseShort("A" 27) returns 10 //Not in JLS
parseInt("Kona", 27) returns 411787
parseLong("Hazelnut", 36) returns 1356099454469L
Cna anyone please clear my doubt that what is radix 27,36...As far as i know there r only following radix(10, 16, 8 ) what's the use of this radix and how does it converts the String into an integer.Or to be specific how does it convert a String (like "Kona" and "Haze1nut") to a number(whats the methodology used?)