Integer.parseint в Java для

The method generally used to convert String to Integer in Java is parseInt().
  This method belongs to Integer class in java. lang package. It takes a valid 
  string as a parameter and parses it into primitive data type int.
Panicky Peccary