Java Int to String

  • + 3 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.