According to the Java API, the constructor Date(year, month, day) is deprecated. I know that I can replace it with the following code:
Date(year, month, day)
Calendar myCa
Calendar has a set() method that can set the year, month, and day-of-month in one call:
myCal.set( theYear, theMonth, theDay );