java strin to int

Java
String myString = "1234";
int foo = Integer.parseInt(myString);
Source

Also in Java: