### Question:
LevelRowCol { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } LevelRowCol other = (LevelRowCol)obj; return myCol == other.myCol && myLevel == other.myLevel && myRow == other.myRow; } LevelRowCol(int level, int row, int col); @Override boolean equals(Object obj); int getCol(); int getLevel(); int getRow(); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testEqualsObject() { assertTrue(new LevelRowCol(4, 5, 6).equals(new LevelRowCol(4, 5, 6))); assertFalse(new LevelRowCol(4, 5, 6).equals(new LevelRowCol(3, 5, 6))); assertFalse(new LevelRowCol(4, 5, 6).equals(new LevelRowCol(4, 4, 6))); assertFalse(new LevelRowCol(4, 5, 6).equals(new LevelRowCol(4, 5, 7))); }