java int to s code example
Example 1: int to string java
int i=10;
String s=String.valueOf(i);//Now it will return "10"
Example 2: java int to string
Integer.toString(n) // converts n to String
int i=10;
String s=String.valueOf(i);//Now it will return "10"
Integer.toString(n) // converts n to String