I have a Map with a GregorianCalendar
key and Boolean
value. The for loop. The Map.Entry<...>
is underlined and it says
Incompatible types.
Required: Object
Found: Entry<java.util.GregorianCalendar, java.lang.Boolean>
My code is:
public static int getDay(GregorianCalendar day) {
Map days = getDays();
for (Map.Entry<GregorianCalendar, Boolean> entry : days.entrySet())
{
}
return -1;
}
If someone knows what I'm doing wrong please help me. Really appreciate.