Java tutorial
import java.util.Calendar; public class Main { public static void main(String[] args) { Calendar cal = Calendar.getInstance(); // get the hash code and print it int i = cal.hashCode(); System.out.println("A hash code for this calendar is: " + i); } }