Java Short doubleValue Example

Short class doubleValue method example. This example shows you how to use doubleValue method.


Short class doubleValue method example. This example shows you how to use doubleValue method. Method returns double value of given Short instance.

Here is the code.
/**
 * @(#) DoubleValueShort.java
 * A class representing use of method doubleValue() of Short class in java.lang Package.
 * @Version  03-May-2008
 @author   Rose India Team
 */
class DoubleValueShort{
  public static void main(String[] args){
    short shortNum = 123;
    Short shortObj = new Short(shortNum);
    
    //Method returns double value of given Short.
    double doubleValue = shortObj.doubleValue()
    System.out.println("double value of given Short is : " + doubleValue);
  }
}

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

HOME | COPYRIGHT | CONTACT US