Help create a JAVA class for this. I don't really understand it. Thank you. Create a BookUtilities class with the following methods: readAllBookData(books : ArrayList) - creates the ArrayList from the data file bookdata.cvs Preview the document displayAllBookData(books : ArrayList) - displays the ArrayList, nicely formatted searchForCategory(books : ArrayList) - displays the Book object with a certain category passed in, search on a substring of the category. searchForBook(books: ArrayList) - displays the Book object on a book that starts with a certain letter or few letters. searchByPrice (books : ArrayList, double minPrice) - displays all Books with maxPrice price and below.  So if the user enter 40, it will list book <= $40. sortyByAuthor((books : ArrayList) : Sort the books by author, maybe a choice of ascending versus descending   Here is the bookdata.cvs: Book,Author,Address,Price,category Simply Java, Harvey Deitel,Boston, 23.49, Java Algorithms to Live By,Christian and Griffiths,New York, 14.59,Programming Introduction to Java, Daniel Liang, Chicago, 117.56, Java Computer Science, David Reed, New York, 78.99,Computer Science

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter16: Graphics
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question

Help create a JAVA class for this. I don't really understand it. Thank you.

Create a BookUtilities class with the following methods:

readAllBookData(books : ArrayList<Book>) - creates the ArrayList from the data file bookdata.cvs Preview the document
displayAllBookData(books : ArrayList<Book>) - displays the ArrayList, nicely formatted
searchForCategory(books : ArrayList<Book>) - displays the Book object with a certain category passed in, search on a substring of the category.

searchForBook(books: ArrayList<Book>) - displays the Book object on a book that starts with a certain letter or few letters.
searchByPrice (books : ArrayList<Book>, double minPrice) - displays all Books with maxPrice price and below.  So if the user enter 40, it will list book <= $40.

sortyByAuthor((books : ArrayList<Book>) : Sort the books by author, maybe a choice of ascending versus descending

 

Here is the bookdata.cvs:

Book,Author,Address,Price,category

Simply Java, Harvey Deitel,Boston, 23.49, Java

Algorithms to Live By,Christian and Griffiths,New York, 14.59,Programming

Introduction to Java, Daniel Liang, Chicago, 117.56, Java

Computer Science, David Reed, New York, 78.99,Computer Science


Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT