(Solved) : Write Program Java Input Book Objects Bookstxt Lab 2 Also Input Arraylists Three Attached Q43943356 . . .
Write a program (java) to input all of the Book objects frombooks.txt, as in Lab 2, and also to input into ArrayLists the threeattached index files, which refer to the index positions within theArrayList of Books, from 0 to 32. You may use your Book class fromLab 2 without modification. One try block with four instantiationsof Scanner objects for the 4 files will work. Then, input the booksand each of the index files into four ArrayList objects. Finally,print a menu as follows and display the books in the various ordersuntil the user selects 5 to quit:
Display the books in order by:
1. Original order
2. By price
3. By title
4. By type
5. quit
Enter your choice:
Expert Answer
Answer to Write a program (java) to input all of the Book objects from books.txt, as in Lab 2, and also to input into ArrayLists t…
OR