where i'm wrong, please help.
package com.codegym.task.task08.task0827;
import java.util.Date;
import java.util.Arrays;
/*
Working with dates
*/
public class Solution {
public static void main(String[] args) {
long days[] = {31,28,31,30,31,30,31,30,31,30,31,30};
System.out.println(isDateOdd("MAY 1 2013"));
}
public static boolean isDateOdd(String date) {
int month = Integer.parseInt(date.substring(0,4));
int day = Integer.parseInt(date.substring(5,7));
int year = Integer.parseInt(date.substring(8));
int days[] = {31,28,31,30,31,30,31,30,31,30,31,30};
if(month > 2 && year % 4 == 0 &&(year%100 != 0 || year%400 == 0)){
++day;
}
while(--month > 0){
day += days[month-1];
}
if(day % 2 == 0) {
return true;
}
else {
return false;
}
}
}