The program will use the JOptionPane and ask the user to enter any number between 1 to 12.
Based on the input, then the program will show how many days in that month. For example if the user enters 1, the program will show ‚??The Month you entered is January and it has 31 days‚??. The output will be shown in the JOptionpane.
[In this program use try and catch block to handle any unacceptable and invalid input from the user]
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.