Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Tutorials Java StringExamples java.lang.String.valueOf(int inum)

Related Tutorials


 
 

Share on Google+Share on Google+

java.lang.String.valueOf(int inum)

Advertisement
The valueOf(int inum) method in Java used for converting int value into string.

The valueOf(int inum) method in Java used for converting int value into string. Basically, inum converts the int value into a String. See the example below...

A simple example...

public static void main(String[] args)
{
String Str = String.valueOf(555);

// int values.
System.out.println(Str);

  }
  }

the output is:
555

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: March 22, 2005

Related Tutorials

Discuss: java.lang.String.valueOf(int inum)  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com