return a string into an integer value java code example Example: java convert String to int int i = Integer.parseInt(myString);