All I must do for this code is display the current year, month and day of the year using the GregorianCalendar class. for some reason everything is right but the month. The program returns the month as being 11 instead of 12. Any suggestions?
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
GregorianCalendar Calendar = new GregorianCalendar();
int year = Calendar.get (GregorianCalendar.YEAR);
int month = Calendar.get (GregorianCalendar.MONTH);
int day = Calendar.get (GregorianCalendar.DAY_OF_MONTH);
System.out.println("the current year is " + year);
System.out.println("the current month is " + month);
System.out.println("the current day is " + day);
}