I program in Java, often there is a task to translate int / float / double to String. Often I do like this
""+number Just because it's more convenient for me, but for some reason it seems to me that you shouldn't write like that.
I know what you can do for example
String.valueOf(number) Integer.toString(number) // для int Which way would be more correct to use one of the methods, or can I write ""+number , and is it really important in this case?