how to override the equals() method when you have to compare 7 instance variables? : <p>I am currently doing my programming assignment. But there is one step that i don't quite understand. There are 7 private instance variables and we are supposed to use the equals() method to compare all the instance variables.
How is that possible?
This is the question-
The class has to override Object’s equals() method in order to return true if the object as argument equal to the object who invoked the method and false otherwise. The method should compare all instance variables of the two objects.</p>

<p>And these are the instance variables-</p>

<pre><code>public class Book implements Usable{
//instance variables


 private String b1, b2, b3, b4, b5, b6, b7; 
 private boolean bookReference;
</code></pre>
