Create a Java source code program that accepts a value for a month (e.g., 2 for February) and a year (2009) and display the

Question

Create a Java source code program that accepts a value for a

month (e.g., 2 for February) and a year (2009) and

display the monthly calendar for the month of the year. The

program also repeats until a user enters

“n†or

“N†as

shown in the following example.

C:\Code> java Calendar

What is the year? 2009

What is the month? 2

Su Mo Tu We Th Fr Sa

1 2 3 4 5 6 7

8 9 10 11 12 13 14

15 16 17 18 19 20 21

22 23 24 25 26 27 28

Enter y to continue or n to quit: y

What is the year? 2012

What is the month? 7

Su Mo Tu We Th Fr Sa

1 2 3 4 5 6 7

8 9 10 11 12 13 14

15 16 17 18 19 20 21

22 23 24 25 26 27 28

29 30 31

Enter y to continue or n to quit: n

C:\Code>


Use a method with the two parameters (e.g., month and year) in

the same program which includes the main method.




Details
Purchase An Answer Below

Have a similar question?