Java tutorial
import java.util.*; public class Main { public static void main(String[] args) { GregorianCalendar cal = (GregorianCalendar) GregorianCalendar.getInstance(); // print a hashcode for this calendar System.out.println("Hash Code:" + cal.hashCode()); } }