Problem
In my Java program, they are asking me to write this method in the book class: getBooksByPublisher - this method should have a publisher as the parameter. It should return an ArrayList object with all the books by the given publisher. If there is no book by the given publisher, the size of the ArrayList will be zero. Then they are asking me to call the program in the main class by doing the following: For the menu "Display books by a publisher", the program will display the titles of all the books(if any) by the given publisher. If there are no such books, display a message.
With this in mind, the method works fine just that I don't know if it supposes to just write the whole title, author, and publisher or just the titles.