Assignment 1, CS 46A
30 points
due September 8, 2003

Define a class A1Greeter that works just like the Greeter class found on the CS 46A web site, except that the greet method prints the word "from" and your name following the greeting (on the same line). Your class should have no main method.

Test your class definitions with the code in the file A1.java, which is available on the class web site (and which does have a main method). The results of your test should look like

hello from Jeff Smith
bonjour from Jeff Smith
aloha from Jeff Smith
buenos dias from Jeff Smith
buenos dias from Jeff Smith
aloha from Jeff Smith
bonjour from Jeff Smith
hello from Jeff Smith
Process completed successfully
except that the last line may be different (or missing altogether) and your name should replace "Jeff Smith". In particular, the greetings should occupy exactly 8 separate lines.

You should provide reasonable documentation of each class, method, and instance field by modifying the documentation of the Greeter class in an appropriate way. Although for later assignments you should use the javadoc utility to check the syntax of those comments delimited by /** and */, you needn't do this for this assignment. For later assignments I will also be stricter about the appropriateness of the documentation than for this one.

Turn in

For this assignment, you can send me these files as 2 separate attachments to an email message if you want. This message should have the subject line Assignment 1, CS 46A. Or you may turn in both of these files on a diskette.