Java Double(double value) Constructor

Syntax

Double(double value) constructor from Double has the following syntax.

public Double(double value)

Example

In the following code shows how to use Double.Double(double value) constructor.


public class Main {
  public static void main(String[] args) {
    System.out.println(new Double(1.1));
/*from   w w  w .j ava 2  s . c o m*/
  }
}

The output:





















Home »
  Java Tutorial »
    java.lang »




Boolean
Byte
Character
Class
Double
Enum
Float
Integer
Long
Math
Number
Object
Package
Process
ProcessBuilder
Runnable
Runtime
SecurityManager
Short
StackTraceElement
StrictMath
String
StringBuffer
StringBuilder
System
Thread
ThreadGroup
ThreadLocal
Throwable