Question: How do you make a calendar using this format? Page import java.util.Scanner; public class PrintCalendar /The main method has only one 1ine of code and
Page import java.util.Scanner; public class PrintCalendar /The main method has only one 1ine of code and it calls the process method You do not need to change anything in this method/ public static void main(String[] args) process 0: /This method ask the required info and calls the appropriate methods the calendar for the month or for the year. You car declare your will only be used here / based on the user's input to either print Scanner object in this method since it public static void process0 /Ithis method prints the body of the calender for the given month by calling the the methods printMonthTable and printMonthBody public static void printMonth (int year, int month) printMonthTitle (year, month) printMonthBody (year, month): //this method prints the title of the days in each week (sunday Mon Tues Wed Thur Fir Sat) /This method prints the following month nane year Sun Mon Tue Wed Thu Fri Sat this method gets the month as an integer and you need to call the appropriate method to get the name of the month*/ public static void printMonthTitle (int year, int month) /*this method calls the method getstartday to find out the firat day of the month (aunday, monday, tuesday, wedneaday, thursday or friday then it calls the nethod print by passing the startday, year and cBook Pro
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
