Vineet Kakati wrote:
I would also recommend against making different classes for book according to genre.
Instead you can add an instance variable genre to class Book;
refer my earlier post for creating array of books;
Agree you should not have lots in the main method. I prefer to see a single statement in main methods!
Vineet Kakati wrote:you have put almost your entire code in main() which is not recommended.
main() should ideally contain only function calls to functions which actually do the tasks. . . .
What is wrong with its current location?
Anita Odiete wrote:I was wondering where exactly i am supposed to put the 'to string' ... method