java.lang.String.valueOf(double dnum)

The valueof(double dnum), is the Java String Class method, which creats and holds the double value in String.

java.lang.String.valueOf(double dnum)

The valueof(double dnum), is the Java String Class method, which creats and holds the double value in String. And the "dnum" converts the double value to String. See the example below...

a simple example of valueOf(double dnum) method in Java.

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

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

  }
  }

the output is:
3.14