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:

Calendar cal = new GregorianCalendar();
boolean leap = cal.isLeapYear(2004);
I am getting the following error when I try to compile it:

cannot resolve symbol method isLeapYear(int)
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.