JAVA: PLEASE EXPLAIN CODE WITH COMMENTS
Modify the supplied book shop system to include a privateinstance variable called publishDate in class Book to representwhen the book was published. Use LocalDate as the variabletype.
Use a static variable in the Book class to automatically assigneach new book a unique (incremental) id number.
Create an array of Book variables to store references to thevarious book objects. In a loop, calculate the cost of each booktype and the sum total of the order.
If the book is of classic type and is more than 50 years old, givethe cost a 35% discount.
If the book is of novel
PayPal Gateway not configured
PayPal Gateway not configured