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
I would also use String.valueOf() method, which, in effect, uses the primitive type's Wrapper object and calls the toString() method for you:
String.valueOf()
toString()
Example, in the String class:
String
public static String valueOf(int i) { return Integer.toString(i, 10); }