private static Date getEasterDay(int year) {
		int a = year % 19;
		int b = year / 100;
		int c = year % 100;
		int d = b / 4;
		int e = b % 4;
		int f = (b + 8) / 25;
		int g = (b - f + 1) / 3;
		int h = ((19 * a) + b - d - g + 15) % 30;
		int i = c / 4;
		int k = c % 4;
		int l = (32 + (2 * e) + (2 * i) - h - k) % 7;
		int m = (a + (11 * h) + (22 * l)) / 451;
		int n = (h + l - (7 * m) + 114) / 31; // This is the month number.
		int p = (h + l - (7 * m) + 114) % 31; // This is the date minus one.

		Calendar cal = Calendar.getInstance();
		cal.set(Calendar.YEAR, year);
		cal.set(Calendar.MONTH, n - 1);
		cal.set(Calendar.DATE, p + 1);

		return cal.getTime();
	}
private static Date getEasterDay ( int year ) { int a = year % 19 ; int b = year / 100 ; int c = year % 100 ; int d = b / 4 ; int e = b % 4 ; int f = ( b + 8 ) / 25 ; int g = ( b - f + 1 ) / 3 ; int h = ( ( 19 * a ) + b - d - g + 15 ) % 30 ; int i = c / 4 ; int k = c % 4 ; int l = ( 32 + ( 2 * e ) + ( 2 * i ) - h - k ) % 7 ; int m = ( a + ( 11 * h ) + ( 22 * l ) ) / 451 ; int n = ( h + l - ( 7 * m ) + 114 ) / 31 ; int p = ( h + l - ( 7 * m ) + 114 ) % 31 ; Calendar cal = Calendar . getInstance ( ) ; cal . set ( Calendar . YEAR , year ) ; cal . set ( Calendar . MONTH , n - 1 ) ; cal . set ( Calendar . DATE , p + 1 ) ; return cal . getTime ( ) ; }
Calculates easter day (sunday) by using Spencer Jones formula found here:
<a href="http://no.wikipedia.org/wiki/P%C3%A5skeformelen">Wikipedia -
Påskeformelen</a>

@param year
The year to calculate from.
@return The Calendar object representing easter day for the given year.