Given a string value and we have to convert it into an integer.
Java conversion from String to Integer
To convert a String to Integer, we can use the following methods of Integer class (see the syntax given below...)
Syntax:
Integer Integer.valueOf(String).intValue();
OR
Integer Integer.parseInt(String);
Java code to convert a String to Integer
Output