Question: Fix the Java coding of this program. This code has both syntax errors and logic errors. Please comment throughout the code so I know what
Fix the Java coding of this program. This code has both syntax errors and logic errors. Please comment throughout the code so I know what was fixed, why it was fixed, and so i can follow along. Inport daysAndDates.DaysOfWeek;
public class TestDaysOfWeek
public static void mainString args
System.out.printlnDays Of week: ;
for int ;;
System.out.printlnNumber: i tDay Of Week:
DaysOfWeek.DayOfWeekStri
package daysAndDates
public class DaysOfWeek
public static String DayOfWeekStrint NumberOfDay
String dayStr
switch NumberOfDay
case :
dayStr "Sunday";
break;
case :
dayStr "Monday";
break;
case :
dayStr "Tuesday"
break;
case :
dayStr "Wednesday";
case :
dayStr "Thursday";
break;
case :
dayStr "Friday";
break;
case :
dayStr "Saturday";
break;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
