what is wrong with this code ..i used the piping symbol first for the last condition it went like- if(number<0 ||number>7){ System.out.println("no such day available")} - but it stll showed the error ..so i changed to this code but still the error persists
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 number = Integer.parseInt(reader.readLine());
if (number == 1)
{
System.out.println("Monday");
}
if (number == 2)
{
System.out.println("Tuesday");
}
if (number ==3)
{
System.out.println("Wednesday");
}
if (number ==4)
{
System.out.println("Thursday");
}
if (number ==5)
{
System.out.println("Friday");
}
if (number ==6)
{
System.out.println("Saturday");
}
if (number ==7)
{
System.out.println("Sunday");
}
if(number > 7)
{
System.out.println("No such day of the week");
}
if(number <0)
{
System.out.println("No such day of the week");
}
}
}