CODING:
public class JavaDoubleToStringExample {
public static void main(String[] args) {
Double dObj = new Double(10.25);
String str = dObj.toString();
System.out.println("Double converted to String as " + str);
}
}
OUTPUT:
public class JavaDoubleToStringExample {
public static void main(String[] args) {
Double dObj = new Double(10.25);
String str = dObj.toString();
System.out.println("Double converted to String as " + str);
}
}
OUTPUT:
Comments
Post a Comment