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