Integer.valueOf(int i) has the following syntax.
public static Integer valueOf(int i)
In the following code shows how to use Integer.valueOf(int i) method.
//ww w. ja v a 2s .c om public class Main{ public static void main(String args[]) { Integer i = Integer.valueOf("12345"); System.out.println(i); } }
The code above generates the following result.