I keep getting compilation error saying " error: reached the end of file while parsing"
What does this mean? How can I correct this??
package com.codegym.task.task04.task0413;
/*
Day of the week
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner scan = new Scanner(System.in);
int day = scan.nextInt();
if ( day == 1 ){
System.out.println("Monday");
} else if ( day == 2 ){
System.out.println("Tuesday");
} else if ( day == 3 ){
System.out.println("Wednesday");
} else if ( day == 4 ){
System.out.println("Thursday");
} else if ( day == 5 ) {
System.out.println("Friday");
} else if ( day == 6 ){
System.out.println("Saturday");
} else if ( day == 7 ){
System.out.println("Sunday");
} else {
System.out.println("No such day of the week");
}
}