String a = String.valueOf(2); //integer to numeric string int i = Integer.parseInt(a); //numeric string to an int