THE Java™ Programming Language, Fourth Edition

(Jeff_L) #1

Exercise 24.3: Write a program that takes a string argument that is parsed into the date to print, and print that
date in all possible styles. How lenient will the date parsing be? 706


Quotes


Contents vii


Prefacexxi


Beautiful buildings are more than scientific. They are true organisms, spiritually conceived;
works of art, using the best technology by inspiration rather than the idiosyncrasies of mere
taste or any averaging by the committee mind.

Frank Lloyd Wright

Results! Why, man, I have gotten a lot of results. I know several thousand things that won't
work.

Thomas Edison

1 A Quick Tour 1


See Europe! Ten Countries in Seventeen Days!

Sign in a travel agent's window

Carefulwe don't want to learn from this!

Calvin and Hobbes

2 Classes and Objects 41


First things first, but not necessarily in that order.

Dr. Who, Meglos

The significant problems we face cannot be solved by the same level of thinking that created
them.

Albert Einstein

3 Extending Classes 75


I am, in point of fact, a particularly haughty and exclusive person, of pre-Adamite ancestral
descent. You will understand this when I tell you that I can trace my ancestry back to a
protoplasmal primordial atomic globule.

Gilbert and Sullivan, The Mikado

When we are planning for posterity, we ought to remember that virtue is not hereditary.

Thomas Paine
Free download pdf