This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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