What is wrong here?
package pl.codegym.task.task08.task0827;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
/*
Praca z datami
*/
public class Solution<i> {
public static void main(String[] args) throws ParseException {
System.out.println(isDataNieparzysta("MAY 1 2013"));
}
public static boolean isDataNieparzysta(String date) throws ParseException {
DateFormat df = new SimpleDateFormat("MMMM DD YYYY");
Date date1 = df.parse(date);
Calendar cal = Calendar.getInstance();
cal.setTime(date1);
int i = cal.DAY_OF_YEAR;
if (i % 2 != 0)
return true;
else
return false;
}
}