I’m working on a java exercise and need a sample draft to help me learn.
1. Create a Chapter class with a chapter title and a number of pages – write the UML and then write the class. Make sure your class has a toString method that returns a string of the chapters title and the number of pages
2. Create a Book class with author, title, publish year, and an array of Chapters – write the UML then write the class. make sure your Book class has a to String method that returns a string of the author, title, year then loops thru the array of chapters to add the chapters
3. Create a TestBook class to test the book
"Place your order now for a similar assignment and have exceptional work written by our team of experts, guaranteeing you A results."