String to int
int num = Integer.parseInt(str);
 
int to String
String str = Integer.toString(num);