Introduction
The decode()
method of the Java Integer
class is used to decode a String to an Integer value. It can decode a decimal, hexadecimal, or octal string, and it returns the integer value of the Integer object which the String holds. In this lab, you will learn how to use the decode()
method with the help of some examples.