This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
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