I cannot figure out how to get this to validate. The code works.
package com.codegym.task.task04.task0414;
/*
Number of days in the year
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
InputStream inputStream = System.in;
Reader inputStreamReader = new InputStreamReader(inputStream);
BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
int year = Integer.parseInt(bufferedReader.readLine());
int x = 0;
if ((year%4) == 0){
x = 366;
}
else {
x = 365;
}
System.out.println("Number of days in the year: " + x);
}
}