Java - Convert String to int

int i = null;
String s = "12345";

i = Integer.parseInt(s);