Integer.valueOf(String s) has the following syntax.
public static Integer valueOf(String s) throws NumberFormatException
In the following code shows how to use Integer.valueOf(String s) method.
public class Main{ public static void main(String[] args) { System.out.println(Integer.valueOf("100")); } }
The code above generates the following result.