You are viewing a single comment's thread. Return to all comments →
I wonder if there's any difference between static String.valueOf and static Integer.toString...
Ok, looking at the source code,
Integer.toString
String.valueOf
String.valueOf just calls Integer.toString, so the only difference is an extra method invocation.
Java Int to String
You are viewing a single comment's thread. Return to all comments →
I wonder if there's any difference between static String.valueOf and static Integer.toString...
Ok, looking at the source code,
Integer.toString
String.valueOf
String.valueOf just calls Integer.toString, so the only difference is an extra method invocation.