There are multiple ways:
String.valueOf(number)
(my preference)"" + number
(I don’t know how the compiler handles it, perhaps it is as efficient as the above)Integer.toString(number)
There are multiple ways:
String.valueOf(number)
(my preference)"" + number
(I don’t know how the compiler handles it, perhaps it is as efficient as the above)Integer.toString(number)