Answered by : wolfy
int x = 3;
Integer.toString(int)
Source : | Last Update : Sun, 22 Dec 19
Answered by : naresh-bharasagar
String s = String.valueOf(n);
String s = Integer.toString(int);
Source : | Last Update : Tue, 25 May 21
Answered by : janny
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
Source : | Last Update : Mon, 08 Jun 20
Answered by : kan3an
int a =123;
String b=String.valueOf(a);
// convert int to string
Source : | Last Update : Fri, 11 Mar 22
Answered by : nasty-narwhal-uvaseu2y4jly
int i = 1234;
String str = Integer.toString(i);
Source : https://stackoverflow.com/questions/5071040/java-convert-integer-to-string | Last Update : Tue, 17 May 22
Answered by : duy-ta
int number = 36789;
--->
String s1 = number+"";
String s2 = String.valueOf(number);
String s3 = Integer.toString(number);
Source : | Last Update : Sun, 09 Jan 22
Answered by : gijs-konings
String myString = Integer.toString(myInt);
Source : | Last Update : Fri, 18 Feb 22
Answered by : helpful-hamster
int a = 10;
char *intStr = itoa(a);
string str = string(intStr);
Source : https://stackoverflow.com/questions/5590381/easiest-way-to-convert-int-to-string-in-c | Last Update : Mon, 11 May 20
Answered by : you
int number = 42;
String numberAsString = Integer.toString(number);
System.out.println(numberAsString);
Source : | Last Update : Mon, 18 Sep 23
Answered by : bernat
// 1
String s=String.valueOf(i);
// 2
String s=Integer.toString(i);
// 3
String s=String.format("%d",i);
Source : https://www.javatpoint.com/java-int-to-string | Last Update : Mon, 23 May 22