”””Is it a good way to convert an integer to a string in Java?
•
Java
See the English answer > How do I convert from int to string? nineteen
int i = 0; String i0 = i + "";
So, is this a good way to convert integers into strings?
Solution
It is easier to read using any method String. Valueof (I) or integer ToString (I) makes your intention clearer than I ""
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码