java convert string to int ip code example Example: java convert String to int int i = Integer.parseInt(myString);