List of usage examples for java.lang Long Long
@Deprecated(since = "9") public Long(String s) throws NumberFormatException
From source file:Main.java
public static void main(String[] args) { Long longObject = new Long("1234567"); float f = longObject.floatValue(); System.out.println("float" + f); }
From source file:Main.java
public static void main(String[] args) { Long longObject = new Long("1234567"); short s = longObject.shortValue(); System.out.println("short:" + s); }
From source file:Main.java
public static void main(String[] args) { Long longObject = new Long("1234567"); long l = longObject.longValue(); System.out.println("long:" + l); }
From source file:Main.java
public static void main(String[] args) { Long lObj = new Long(10); String str = lObj.toString(); System.out.println("Long converted to String as " + str); }
From source file:Main.java
public static void main(String[] args) { Long v = new Long(1234567890); System.setProperty("Java2s.com", "12345"); String str = "Java2s.com"; System.out.println(Long.getLong(str, v)); System.out.println(Long.getLong("java", v)); }
From source file:Main.java
public static void main(String[] args) { long i = 10;//from www. j ava 2 s . c o m Long lObj = new Long(i); System.out.println(lObj); }
From source file:Main.java
public static void main(String[] args) { Long lObj = new Long("10"); byte b = lObj.byteValue(); System.out.println(b);/*w w w . j a va 2s. co m*/ 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); }
From source file:Main.java
public static void main(String[] args) { long l = 10;// w w w.j a v a 2 s. c om Long longObj1 = new Long(l); Long longObj2 = new Long("5"); System.out.println(longObj1); System.out.println(longObj2); }
From source file:MainClass.java
public static void main(String[] args) { long l = 10000000l; Long l2 = new Long(l); System.out.println(l2.longValue()); }
From source file:Main.java
public static void main(String[] args) { Long l = new Long("12345678"); BigDecimal bg = BigDecimal.valueOf(l); System.out.println(bg);/*from www . j a v a 2 s. c o m*/ }