Question: Print a Calender in JAVA whose correct output should look like the picture attached. Hints: There are 30 days in the month and the first

Print a Calender in JAVA whose correct output should look like the picture attached.
Hints: There are 30 days in the month and the first Sunday is on day 5. You should be able to print a calender using this inputs for any given other user input using a scanner.
THE CORRECT OUTPUT OF THE TEST CASE How many days in the month? What is the day of the first Sunday? Here you go: IIII1 21 31 4| 15| 6| 8| 9|10|11| 112113|14|15|16|118 19120121|22|23124125 26 27 28 29 30 PRETTY DIFF This diff is colored to make it clear what parts of the output are wrong. Green indicates things in the correct output that you ar be there The d character refers to nevines, so the gree character refers a newline you are missing in your output and the red-rete
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
