Below is my code at this moment, I need to add to the equals method so when I create a two books they will only be equal if both of the attributes are the same. Hopefully you guys can help.
public class Book {
private String title;
private boolean bound;
Book(String title, boolean bound) {
this.title = title;
this.bound = bound;
}
@Override
public boolean equals(Object obj) {
if ((obj instanceof Book)) {
return true;
}
return false;
}
}