Short: doubleValue() : Short « java.lang « Java by API






Short: doubleValue()

  

public class Main {

  public static void main(String[] args) {
    Short sObj = new Short("10");

    byte b = sObj.byteValue();
    System.out.println(b);

    short s = sObj.shortValue();
    System.out.println(s);

    int i = sObj.intValue();
    System.out.println(i);

    float f = sObj.floatValue();
    System.out.println(f);

    double d = sObj.doubleValue();
    System.out.println(d);

    long l = sObj.longValue();
    System.out.println(l);
  }
}
/*
10
10
10
10.0
10.0
10
*/

   
    
  








Related examples in the same category

1.Short.MAX_VALUE
2.new Short(String s)
3.new Short(short value)
4.Short: byteValue()
5.Short: floatValue()
6.Short: intValue()
7.Short: longValue()
8.Short: parseShort(String s,int radix )
9.Short: shortValue()
10.Short: toString()
11.Short: valueOf(String stringValue)