> Although millions of students have written code for
> that, it is not part of standard Java yet...
and that's one of the reasons why. Wouldn't want every single student assignment to be part of the core language as that would make life hard on teachers :)
Birthdays are useless things anyway. Age isn't a discreet entity that can be caught in a simple number, certainly not a number of years. The year is far too long a period to define age in, weeks or days come first and even that may be too coarse a definition when talking about mayflies for example.
> > Birthdays are useless things anyway.
> What about Birthday parties then ?
>
those only cost money.
> > The year is far too long a period ...
> You mean... between Birthday parties, don't you ?
>
I avoid those, even my own (when I can).
[url=http://www.javaworld.com/jw-12-2000/jw-1229-dates.html]Calculating Java dates: Take the time to learn how to create and use dates[/url]
[url=http://www.javaworld.com/javaworld/jw-03-2001/jw-0330-time.html]Working in Java time: Learn the basics of calculating elapsed time in Java[/url]