RU beehive logo ITEC dept promo banner
ITEC 120
2008fall
aaray,
ejderrick,
ibarland,
jmdymacek

homeinfolabshwsexams
textbookjava.lang docsjava.util docsarchive

hw10
A Book Catalog
objects containing objects

This shorter homework is due on the last day of class (Dec.12 (Fri)) 17:00. It involves one modification to lab14a.

As in lab14a, write a program which reads a “catalog file” of books, and then lets the users search for books by author's name. However, we will modify it so that the user doesn't need to provide the author's entire name: we will only search by the author's last name.


In order to implement this properly, we'll make another class: class Name, which has two fields (“first” and “last”). The class Book will still have exactly two fields -- a title (still a String), and an author (which is now a Name object).

Some details on class Name:


Extra credit

homeinfolabshwsexams
textbookjava.lang docsjava.util docsarchive


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