You can convert a String to int by using a function:
int num= Integer.parseInt(string);
For Example:
String s="100";
int i=Integer.parseInt(s);
You can convert a String to Integer by using a function:
int num=Integer.valueOf(string);
String s="100";
int i=Integer.valueOf(s);