Can anyone see what is wrong in this code? I tried different implementations without any success so i guess there's something wrong i just can't see or understand. Please help!
package com.codegym.task.task04.task0414;
/*
Number of days in a year
*/
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));
String sYear = reader.readLine();
int year = Integer.parseInt(sYear);
if((year % 400) == 0)
{
System.out.println("Number of days in a year: 366");
}
else {
System.out.println("Number of days in a year: 365");
}
}
}