size of long in java code example
Example 1: class as a data type in java
Class Node {
Node next = null;
int data;
public Node(int d){ data = d; }
void append(int d)
{
blah blah blah
..............
}
}
Example 2: max long value java
/**
* A simple application that looks up the value of Long.MAX_VALUE and outputs it to the user.
**/
public class Test {
public static void main(String[] args) {
System.out.println("The maximum Long value is: "+Long.MAX_VALUE);
}
}