Exercise 2: Create a Book class; where: lo Each book contains the following information: book title, book Author name, barcode (as long integers) and book topic. 6 Implement an appropriate...


Exercise 2:<br>Create a Book class; where:<br>lo Each book contains the following information: book title, book Author name, barcode (as<br>long integers) and book topic.<br>6 Implement an appropriate constructor(s) and all necessary get/set methods.<br>Test Book class:<br>lo Create different book objects (at least 5 books) and store them in a LinkedList sorted by<br>book barcode value. Generate a unique random integer value for the barcode.<br>O 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: lo Each book contains the following information: book title, book Author name, barcode (as long integers) and book topic. 6 Implement an appropriate constructor(s) and all necessary get/set methods. Test Book class: lo Create different book objects (at least 5 books) and store them in a LinkedList sorted by book barcode value. Generate a unique random integer value for the barcode. O 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