convert integer long java code example
Example 1: int to long java
Long l= new Long(i); //first way
Long l2=Long.valueOf(i); //second way
Example 2: int to long java
(long) intValue;
Long l= new Long(i); //first way
Long l2=Long.valueOf(i); //second way
(long) intValue;