Package java.lang
Class Integer
Description:
This method decodes a String into an Integer. It accepts decimal, hexadecimal, and octal number in the following formats:
The constant following an (optional) negative sign and/or "radix specifier" is parsed as by the Integer.parseInt method with the specified radix (10, 8 or 16). This constant must be positive or a NumberFormatException will result. The result is made negative if first character of the specified String is the negative sign. No whitespace characters are permitted in the String.
Example
Integer data = Integer.decode("20");
The example above decodes a string to an Integer number.