Java String valueOf(int i) Example
String class valueOf(int i) method example
String class valueOf(int i) method example. This example shows you how to use valueOf(int i) method.This method Returns the string representation of the int argument.
Here is the code:-
/**
* @(#) ValueOf5string.java
*Program that Returns the string representation of the int argument..
* @Version 01-May-2008
* @author Rose India Team
*/
public class ValueOf5string
{
public static void main(String args[])
{
int i = 10;
// Returns the string representation of the integer argument.
System.out.println( String.valueOf(i));
}
} |
null
|