static void printMonth(int year, int month) { // get start day of the week for the first date in the month int startDay = getStartDay(); // get number of days in the month int numOfDaysInMonth = calendar.daysInMonth(); // print headings printMonthTitle(year, month); // print body printMonthBody(startDay, numOfDaysInMonth); }