File: PrintCalendar.java /Users/jugdeepsadhra -jGRASP CSD (Java) Settings Tools
ID: 3740813 • Letter: F
Question
File: PrintCalendar.java /Users/jugdeepsadhra -jGRASP CSD (Java) Settings Tools Window Help 7 import java.util.*; 9 public class Printcalendar f 10 *Main method */ 11 public static void main(Stringl args) t 12 Scanner kbnew Scanner (System.in); process (kb); 13 14 15 16 public static void process(Scanner kb) ( int choice; 17 18 19 System.out.println("Please make a choice") 20 System.out.println("1.month"); 21 System.out.println( "2.year" 22 choice kb.nextint(); 23 24 if(choice2) 25 System.out.println( "Invalid choice") 26 ) 27 28 29 30 31 32 if (choice 1) System.out.printin( "Enter month number:) int month-kb.nextInt() printMonth(int year, int month); 3 4 35 else( 36 Daysin MonthStoryjava ReportShellja... Projecti java Compile Messages jGRASP Messages Run 1/O Interactions DayExplanation / Answer
We should not use data types while calling the method.
---------------------------------------------------------------------------------------------------
So, Replace the line
printMonth(int year, int month);
to
printMonth(year, month);
---------------------------------------------------------------------------------------------------
So, Replace the line
printYear(int year, int month);
to
printYear(year, month);
---------------------------------------------------------------------------------------------------
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.