public static void main (String[] args){ System.out.print("Enter a year: "); Scanner in = new Scanner(System.in); Long year = in.nextLong(); System.out.print("Enter a month: "); Long month = in.nextLong(); if(isLeapYear(year)){ System.out.println("That is a leap year, and your month has "+daysInMonth(month,year)+" days."); } else System.out.println("That is not a leap year, and your month has "+daysInMonth(month,year)+" days."); in.close(); }