I can convert an integer into string using
String s = \"\" + 4; // correct, but poor style or String u = Integer.toString(4); // this is good
I
There's a third one - String.valueOf(..) (which calls Wrapper.toString(..)
String.valueOf(..)
Wrapper.toString(..)
Actually the compiler adds Wrapper.toString(..) in these places, so it's the same in terms of bytecode. But ""+x is uglier.
""+x