Java Integer.valueOf(String s)
Syntax
Integer.valueOf(String s) has the following syntax.
public static Integer valueOf(String s) throws NumberFormatException
Example
In the following code shows how to use Integer.valueOf(String s) method.
/* ww w .j ava2s . c om*/
public class Main{
public static void main(String[] args) {
System.out.println(Integer.valueOf("100"));
}
}
The code above generates the following result.