Write a class Book with private fields title (String), author (String) and year (int), and:
- a constructor with the three values;
- a second constructor with only
titleandauthor, which sets the year to2026(constructor chaining withthis(...)); toString()returningtitle by author (year);equals(Object other)returningtruewhen the title and the author are the same (ignore the year).
The class BookApp reads one line for the title and one for the author, creates a book with each constructor and prints:
Java by Dean (2011)
Java by Dean (2026)
Same book: true
Read the year from the keyboard for the first book.