SE450: Homework [40/41] Previous pageContentsNext page

Read chapters 1-3, 8.2, and Appendices B and C of Jia (and, optionally, chapters 1 of Gamma and 1 and 2 of Shalloway).

Download and install the 1.4 JDK and Documentation on your computer (or try doing it on a lab computer in a separate directory or filesystem)

Read through the documentation and play with the SDK tools, including javac, java, javap, javadoc, jdb, and jar. (You'll need 3 of them for your assignment anyway)

Read this tutorial on how to write JavaDoc comments.


Do problem 3.1 in the Jia text, with the following additions: Your program should not just print your favorite poem (or part of it, it doesn't have to be a typing exercise, just a few lines), but should take 1 or more String arguments which are words to search for in your poem. It should print the poem, and then print each word that was passed in whether or not it was found in the poem. For example, if the poem were:

Do not go gentle into that good night,
Old age should burn and rave at close of day;
Rage, rage against the dying of the light.
        

And the program were called like this:

java se450.mwright1.hw1.MyFavoritePoem rage light computer
        

The output would be:

Do not go gentle into that good night,
Old age should burn and rave at close of day;
Rage, rage against the dying of the light.

rage is in the poem
light is in the poem
computer is not in the poem
        

Use the supplied code, sample submission, and package structure here.

Also:

Previous pageContentsNext page