anyways I'll try to figure out another way
package com.codegym.task.task08.task0827;
import java.util.Date;
/*
Working with dates
*/
public class Solution {
public static void main(String[] args) {
System.out.println(isDateOdd("MAY 1 2013"));
}
public static boolean isDateOdd(String date) {
Date date1 = new Date(date);
if(date1.getDay() % 2 != 0)
return true;
else
return false;
}
}