RU beehive logo ITEC dept promo banner
ITEC 120
2009spring
ibarland
nokie
jmdymacek

homeinfolectslabsexamshws
textbooktutor/PIsjava.lang docsjava.util docs

lab03a
using GregorianCalendar

Project 2.1 from the textbook (p.77).
(Note that “Projects” are not the same as “programming exercises”.)

The book forgets to mention that the full name of the class is “java.util.GregorianCalendar”. You could type that full name out every time you mention the class, but you'll probably find it more convenient to include, as the very first line of your the program,

import java.util.GregorianCalendar;

As the problem states, you'll use the built-in variables with long funny names like java.util.GregorianCalendar.APRIL, to specify a month. (It's not a String, so don't put that in quotes: it's a built-in variable which has a “.” as part of its name.) It's just like another built-in variable, Math.PI.

Have a Happy Groundhog DayImbolc (11:45).

homeinfolectslabsexamshws
textbooktutor/PIsjava.lang docsjava.util docs


©2009, Ian Barland, Radford University
Last modified 2009.Feb.03 (Tue)
Please mail any suggestions
(incl. typos, broken links)
to iba�rlandrad�ford.edu
Powered by PLT Scheme