ITEC 120 LAB 23 Back to Lab index page

An array of objects

You will create an array of 10 textbooks. You'll search the array for a certain textbook.

Here is the Textbook class: Textbook.java

In the Textbook class, first write a boolean equals method which returns true if two textbooks are the same. Textbooks are the same if they have the same author, title, and edition.

In your driver:

Run your program with 3 different input files: in1.txt, in2.txt, and in3.txt. Here's sample output generated by in1.txt: out1.txt.

Once you have your program working, show your lab (by running it with each of the 3 input files) to the Peer Instructor to be checked off.