Can anyone explain how this method in the Integer class works. I understand the parseInt (
String s) method no problem but I guess I am having trouble understanding what a radix is. I've included some examples from the API to demonstrate the results of calling this method. Please help ... Gerry.
parseInt("0", 10) returns 0
parseInt("473", 10) returns 473
parseInt("-0", 10) returns 0
parseInt("-FF", 16) returns -255
parseInt("2147483647", 10) returns 2147483647
parseInt("-2147483648", 10) returns -2147483648
parseInt("2147483648", 10) throws a NumberFormatException
parseInt("99", 8) throws a NumberFormatException
parseInt("Kona", 10) throws a NumberFormatException
parseInt("Kona", 27) returns 411787