Not using equals
To compare objects use
if (obj1.equals(obj2))
instead of
if (obj1 == obj2)
Link to this Page
Common mistakes on the CS AP Free Response Questions
last edited on 21 June 2009 at 6:24 pm by user-11216rt.dsl.mindspring.com