You don't need to make the calendar an int. In this code you are calling the setcalendar() method. However, the setcalendar method is declared as which means you need to pass an integer value which represents a year. So, as an example, to pass this year as an argument, you change your code to
Joined: Nov 15, 2006
problem sovled!!!thanks everyone!!!
subject: cannot apply...wrong type or wrong operator?help please!