new Long(long value) : Long « java.lang « Java by API






new Long(long value)

  


public class Main {
  public static void main(String[] args) {
    long i = 10;

    Long lObj = new Long(i);
    System.out.println(lObj);
  }
}

   
    
  








Related examples in the same category

1.Long.MAX_VALUE
2.Long.MIN_VALUE
3.long.class
4.new Long(String s)
5.Long: byteValue()
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)