Java - Convert String to int

1
2
3
4
int i = null;
String s = "12345";
 
i = Integer.parseInt(s);