Code
this.calendar=new GregorianCalendar(7, 7, 7);
System.exit(calendar.MONTH);
Process finished with exit code 2. Year, Month, Day should all be set to 7, so why this strange exit code?
Code
this.calendar=new GregorianCalendar(7, 7, 7);
System.exit(calendar.MONTH);
Process finished with exit code 2. Year, Month, Day should all be set to 7, so why this strange exit code?
hehe… calendar.MONTH == Calendar.MONTH wich is the field name to get the month of of a calendar instance (calendar.get(Calendar.MONTH)) would return 7
Lilian
Thanks 
One day we think we understand software code but the next day the brain play tricks on us again 
by java convention all caps indicates a constant.
anyways why are you using system.exit() differendly put why would you want you abnormal exit code to equal number of a month. ???
The System.exit was for error testing purpose. Wanted to know what numbers I got.
???
System.out.println(calendar.month);
/**
* Field number for <code>get</code> and <code>set</code> indicating the
* month. This is a calendar-specific value. The first month of the year is
* <code>JANUARY</code> which is 0; the last depends on the number of months in a year.
*
*/
public final static int MONTH = 2;
That class needs retrofitting to use an Enum :
it does? I don’t beleave 1.4 had enums 
setting the tpic name aside, there is so much thats avail in 1.5 that isn’t used in the api, none of the swing components use genetircs for example. all in due time I gues.