I keep getting an "error converting a string to a number message" . I've looked over the code many times and just can't see the problem. Any help would be appreciated. Thanks
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));
System.out.println("Please, enter a number: ");
String s = reader.readLine();
int day = Integer.parseInt(s);
if (day == 1)
System.out.println("Monday");
if (day == 2)
System.out.println("Tuesday");
if (day == 3)
System.out.println("Wednesday");
if (day == 4)
System.out.println("Thursday");
if (day == 5)
System.out.println("Friday");
if (day == 6)
System.out.println("Saturday");
if (day == 7)
System.out.println("Sunday");
if (day < 1 || day > 7)
System.out.println("No such day of the week");
}
}