string into int expection java code example Example: converting string to interer int i = Integer.parseInt(myString);