Convert Double into String with Double toString method in Java
Description
The following code shows how to convert Double into String with Double toString method.
Example
// ww w . j a v a 2 s. c o m
public class Main {
public static void main(String[] args) {
Double dObj = new Double(10.25);
String str = dObj.toString();
System.out.println(str);
}
}
The code above generates the following result.
Home »
Java Tutorial »
Java Data Type »
Java Tutorial »
Java Data Type »