A

Admin • 828.03K Points
Coach

Q. How can you convert an integer to a string in Java?

  • (A) String.valueOf(int)
  • (B) Integer.toString(int)
  • (C) Both A and B
  • (D) toString(int)

Explanation by: Admin
Both String.valueOf() and Integer.toString() convert int to String.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.