Convert string to int
public class ConvertStringToInt { public static void main(String[] args) { String aString = "78"; int aInt = Integer.parseInt(aString); System.out.println(aInt); } }