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
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
Introduction to Java, Daniel Liang, Chicago, 117.56, Java
Computer Science, David Reed, New York, 78.99,Computer Science

Step by step
Solved in 2 steps









