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