how to turn a string into a number java code example Example: convert string to int java Click to copyString myString = "1234"; int foo = Integer.parseInt(myString);