public class Solution {

    public static void main(String[] args) throws ParseException {
        System.out.println(isDateOdd("November 9 2020"));


    }

    public static boolean isDateOdd(String date) throws ParseException {
        SimpleDateFormat sdf = new SimpleDateFormat("MMMMM dd yyyy");
        Date introducedDate = sdf.parse(date);
        //i have obtained date format from the string introduced by user


        Calendar calendar = new GregorianCalendar(2020, Calendar.JANUARY, 0);
        //i have set the date from the beginning of the year but under calendar format


        Calendar calendar2 = Calendar.getInstance();
        calendar2.setTime(introducedDate);
        //i have converted date introduced by user from date to calendar

        long difference = ChronoUnit.DAYS.between(calendar.toInstant(), calendar2.toInstant());
        //this is the difference between the two calendars in days.

        //System.out.println(difference);
        return (difference % 2 == 0) ? false : true;
    }
}