I am trying to use the isLeapYear function in my program and it doesn't seem to be working. Here is a bit of code:
I am getting the following error when I try to compile it:Code:Calendar cal = new GregorianCalendar(); boolean leap = cal.isLeapYear(2004);
All of my other calendar methods are working fine so I don't know what is going on. I am using java sdk 1.4.2_03. Any help would be greatly appreciated. Thanks.Code:cannot resolve symbol method isLeapYear(int)


Reply With Quote


Bookmarks