I am working on an online course and this is one of the problems.
It wants me to create a program so that books that are already on the list are not added again. Two books should be considered the same if they have the same name.
I need to create an equals method so I can use the contains method to properly search my list for repeating objects.
The program does not seem to be reading my second if statement in main. When I enter in a second book with the same title as the first, it asks for the publication year. I want it to print my message asking for a different book and continue back at the beginning of the while loop.