Excellent explanations Pradeep and Cody!
Stub-
If you're ever in doubt regarding the behavior of a particular method call -- just check the API documentation, it will always explain what the expected behavior is:
java.lang.Boolean.getBoolean(...)
- Returns true if and only if the system property named by the argument exists and is equal to the string "true". (Beginning with version 1.0.2 of the JavaTM platform, the test of this string is case insensitive.) A system property is accessible through getProperty, a method defined by the System class.
If there is no property with the specified name, or if the specified name is empty or null, then false is returned.
java.util.Calendar.set(...)
Sets the values for the fields year, month, date, hour, minute, and second. Previous values of other fields are retained. If this is not desired, call clear first.
Parameters:
year - the value used to set the YEAR time field.
month - the value used to set the MONTH time field. Month value is 0-based. e.g., 0 for January.
date - the value used to set the DATE time field.
hour - the value used to set the HOUR_OF_DAY time field.
minute - the value used to set the MINUTE time field.
second - the value used to set the SECOND time field.
** Note all the months are stored as Constants, so you can use those to define the date without worrying about the base 0 stuff:
calendar.set(2003,Calendar.SEPTEMBER,5,13,0,0)
BTW -- there are no stupid questions
[ September 05, 2003: Message edited by: Jessica Sant ]