Good afternoon,
Can someone tell me where is the mistake and why the program is not recognizing that I'm printing the day of the week?
Thank you in advance
package com.codegym.task.task04.task0413;
/*
Day of the week
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int day = Integer.parseInt(reader.readLine());
if (day==1)
{System.out.println("Monday");}
else if(day==2)
{System.out.println("Tuedsay");}
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");}
}
}