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 main(String[] args){
System.out.println("Days Of week: ");
for (int i=0;i8;i++){
System.out.println("Number: "+ i +"tDay Of Week: "+
DaysOfWeek.DayOfWeekStr(i))
}
}
}
package daysAndDates
public class DaysOfWeek {
public static String DayOfWeekStr(int NumberOfDay){
String dayStr ="'"
switch (NumberOfDay){
case 1:
dayStr = "Sunday";
break;
case 2:
dayStr = "Monday";
break;
case 3:
dayStr = "Tuesday"
break;
case 4:
dayStr = "Wednesday";
case 5:
dayStr = "Thursday";
break;
case 6:
dayStr = "Friday";
break;
case 7:
dayStr = "Saturday";
break;
}
}
}
 Fix the Java coding of this program. This code has both

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!