We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • Practice
  • Certification
  • Compete
  • Career Fair
  • Hiring developers?
  1. Practice
  2. Java
  3. Introduction
  4. Java Int to String
  5. Discussions

Java Int to String

Problem
Submissions
Leaderboard
Discussions
Editorial

    You are viewing a single comment's thread. Return to all comments →

  • thirdy 5 years ago+ 0 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.

    6|
    ParentPermalink
  • Contest Calendar
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy
  • Request a Feature