Long: byteValue() : Long « java.lang « Java by API






Long: byteValue()

  

public class Main {

  public static void main(String[] args) {
    Long lObj = new Long("10");
    byte b = lObj.byteValue();
    System.out.println(b);

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

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

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

    double d = lObj.doubleValue();
    System.out.println(d);
  }
}

   
    
  








Related examples in the same category

1.Long.MAX_VALUE
2.Long.MIN_VALUE
3.long.class
4.new Long(String s)
5.new Long(long value)
6.Long: doubleValue()
7.Long: floatValue()
8.Long: intValue()
9.Long: longValue()
10.Long: parseLong(String s, int radix)
11.Long: shortValue()
12.Long: toHexString(long i)
13.Long: toString(long i, int radix)
14.Long: valueOf(String stringValue)