please help me in this code
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 {
System.out.println("Enter a Year:");
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String number = reader.readLine();
int year = Integer.parseInt(number);
boolean x = isLeapYear(year);
if (x == true)
System.out.println("Number of days in the year: 366");
else
System.out.println("Number of days in the year: 365");
}
public static boolean isLeapYear(int year) {
return ((year % 400 == 0) && (year % 100 != 0) || (year % 4 == 0));
}
}