parseInt() to convert a string to an integer.
Read moreCan you make a String an int?
We can convert String to an int in java using Integer. parseInt() method . To convert String into Integer, we can use Integer. valueOf() method which returns instance of Integer class.
Read more