The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

help!

Posted by Dave Jones on February 06, 2001 at 1:16 PM

I'm designong and implementing Java program that implements a simple catalogue system for our home library. A book entry in this system consists of a title, an author, and a year of copyright. A user of the system should be able to perform the following operations:

-Enter a book into the library. If not all components of the book description are given, default values should be entered (i.e., "unknown" for title or author and -1 for the copyright year).
-Remove a book from the library.
-List all the books in the library.
-List the actual number of books in the library.
-Find a book with a given title. You can assume that if there is more than one book with the same title, returning any one of them is okay.
-Update the title, author, or year of copyright of a book.
-Obtain the number of books that have been added to the library during any session. Note that this is not the same as the number of books currently in the library.
-Write an entire catalogue as a file onto disk.
-Read an entire catalogue file from disk.

I have to use various classes to do this...any suggestions?
Thanks



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us