if(year%400==0 || year%4==0) System.out.println("Number of days in the year: 366"); else System.out.println("Number of days in the year: 365");