ITEC 120 LAB 13 Back to Lab index page

Equality of objects

Download the class file BingoNumber.java and the driver program lab13.java.

You will complete the driver program according to these instructions:

Question 1 : Are the two BingoNumbers == to each other now?
Question 2 : Are the two BingoNumbers .equals to each other now?

Question 3 : Are the two BingoNumbers == to each other now?
Question 4 : Are the two BingoNumbers .equals to each other now?

Now make a change to the BingoNumber class file according to these instructions:

Question 5 : Now when are the BingoNumbers .equals to each other?
Question 6 : Explain the behavior of the .equals method before you wrote one. What happened?

Once you have your program working, show your lab to the Peer Instructor and answer these questions to be checked off.