string to int and int to string in java code example Example: go from string to int java String myString = "1234"; int number = Integer.parseInt(myString);