Here you can find the source of isDefaultHolidays(int year, int month, int day)
static public boolean isDefaultHolidays(int year, int month, int day)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.GregorianCalendar; public class Main { static public boolean isDefaultHolidays(int year, int month, int day) { GregorianCalendar cal = new GregorianCalendar(year, month - 1, day); int dayOfWeek = cal.get(Calendar.DAY_OF_WEEK); return dayOfWeek == Calendar.SUNDAY || dayOfWeek == Calendar.SATURDAY; }//from ww w . j a va 2 s .c o m }