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.
Seems like cookies are disabled on this browser, please enable them to open this website
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.