Java Long doubleVaue Example

Long class doubleValue method example.


Long class doubleValue method example. This example shows you how to use doubleValue method. This method generates the double type value of Long object.

Syntax:-doubleValue()

Here is the code:-
/**
 * @(#) DoubleValueLong.java
 *  DoubleValueLong class demonstrates the working of
double()method of Long class of lang package
 @version 9-May-2008
 @author Rose India Team
 */

public class DoubleValueLong {
  public static void main(String args[]) {

    // method converts the number value in Long object to a double type
    // value
    // the value is stored in a variable that holds floating numbers in it
    // i.e. either double or float
    Long value = new Long(4234);

    double dou = value.doubleValue();
    System.out.println("returned double is " + dou);
  }

}

Post Comment
Name:
E-mail:
Contact no :
Comments:
  Refresh Image
Verify Image:
 
 
Your Comment's
 
 
 

HOME | COPYRIGHT | CONTACT US