code: public static DayOfWeek firstDayOfWeekInMonth(int year, int month) {
  		int result = fixedFromGregorian(year, month, 1) % 7;
  		if (result < 0) {
  			result += 7;
  		}
  		return DAYS_OF_WEEK[result];
  	}
docs: Gets the day of the week of the first day in the given month.
  @param year the year
  @param month the month (1-12)
  @return the day of the week