Java Long longValue Example
Long class longValue method example.
Long class longValue method example. This example shows you how to use longValue method. This method generates the long type values of Long objects.
Syntax:- longValue()
Here is the code:-
/**
* @(#) LongValueLong.java
* LongValueLong class demonstrates the working of longValue()method of Long class of lang package
* @version 9-May-2008
* @author Rose India Team
*/
public class LongValueLong {
public static void main(String args[]) {
// method returns here the Long object value and stores it in a long
// type variable
Long e = new Long(435345);
long i = e.longValue();
System.out.println("returned long value is " + i);
}
} |
|