Exercise 2. Create a Book class where: Each book contains the following information: book title book Author name, barcode (as fong integers), and book topic. o Implement an appropriate constructor(s)...


Exercise 2.<br>Create a Book class where:<br>Each book contains the following information: book title book Author name, barcode (as<br>fong integers), and book topic.<br>o Implement an appropriate constructor(s) and all necessary get/set methods.<br>Test Book class:<br>o Create diffcrent book objects (at least 5 hooks) and store them in a LinkedList sorted by<br>book barcode value Generate a unique random integer value for the barcode.<br>Iterate through the LinkedList and print out the books' details<br>O Create a second LinkedList object containing a copy of the above LinkedList, but in<br>reverse order.<br>

Extracted text: Exercise 2. Create a Book class where: Each book contains the following information: book title book Author name, barcode (as fong integers), and book topic. o Implement an appropriate constructor(s) and all necessary get/set methods. Test Book class: o Create diffcrent book objects (at least 5 hooks) and store them in a LinkedList sorted by book barcode value Generate a unique random integer value for the barcode. Iterate through the LinkedList and print out the books' details O Create a second LinkedList object containing a copy of the above LinkedList, but in reverse order.

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here