processing string to int

Java
String s = "1";
int i = Integer.parseInt(s);
Source

Also in Java: