Convert an int value to String: Integer.toString(i)
public class Main { public static void main(String[] args) { int i = 50; String str = Integer.toString(i); System.out.println(str + " : " + Integer.toString(i).getClass()); } } //50 : class java.lang.String