double equal sign vs equals() method (Beginning Java forum at JavaRanch)
== tells you whether they are both the same object. equals() tells you that they satisfy whatever criteria that class has to be regarded as equal. If the API documentation for your class has "equals" under "methods inherited from Object" then it simply us...