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