how to convert primitive int to string in java code example
Example 1: how to convert integer to string' in java
StringBuilder sb = new StringBuilder();
sb.append("");
sb.append(number);
return sb.toString();
Example 2: convert a int to string in java
String s = String.ValueOf(10); // will return "10"