public static boolean isSameYear(Calendar cal1, Calendar cal2) {
    """
	Returns whether the given {@code Calendar}s represent the same year.
	
	@param cal1 the first {@code Calendar}.
	@param cal2 the second {@code Calendar}.
	
	@return whether the given {@code Calendar}s represent the same year.
	
	@throws NullPointerException if one of the arguments is {@code null}.
    """
		return cal1.get(ERA) == cal2.get(ERA)
			&& cal1.get(YEAR) == cal2.get(YEAR);
	}
public static boolean isSameYear(Calendar cal1, Calendar cal2)
	{
		return cal1.get(ERA) == cal2.get(ERA)
			&& cal1.get(YEAR) == cal2.get(YEAR);
	}
public static boolean isSameYear ( Calendar cal1 , Calendar cal2 ) { return cal1 . get ( ERA ) == cal2 . get ( ERA ) && cal1 . get ( YEAR ) == cal2 . get ( YEAR ) ; }
Returns whether the given {@code Calendar}s represent the same year.

@param cal1 the first {@code Calendar}.
@param cal2 the second {@code Calendar}.

@return whether the given {@code Calendar}s represent the same year.

@throws NullPointerException if one of the arguments is {@code null}.
Returns whether the given { @code Calendar } s represent the same year .