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

Advertisements

Posted on: March 22, 2005 If you enjoyed this post then why not add us on Google+? Add us to your Circles

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.

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

Post your Comment


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