xxxxxxxxxx
// 1
String s = String.valueOf(i);
// 2
String s = Integer.toString(i);
// 3
String s = String.format("%d", i);
xxxxxxxxxx
String s = String.ValueOf(x); //converts a int x to a String s
//or
String s = Integer(x).toString(); //converts a int x to a String s
xxxxxxxxxx
int number = 36789;
--->
String s1 = number+"";
String s2 = String.valueOf(number);
String s3 = Integer.toString(number);