boolean equals
<p>I created a class that records the title, performer, and year of publish for songs, and i implemented a method to check if any of the songs is similar to each other.</p>

<pre><code>public boolean equals(SongPrivate otherSong){
    boolean isEqual = false;
    isEqual = title.equals(otherSong.title) &amp;&amp;
              year == otherSong.year &amp;&amp;
          preformer == otherSong.preformer;

         return isEqual;
         }
public boolean equals(SongPrivate otherSongPrivate){
    boolean isEqual = false;
    isEqual = title.equals(otherSongPrivate.title) &amp;&amp;
              year == otherSongPrivate.year &amp;&amp;
          preformer == otherSong.preformer;

    return isEqual;
         }
</code></pre>

<p>both method compile and run. My class file is named SongPrivate.</p>

<p>Which method should i use and what is the different between the two methods?</p>

<p>thank you...</p>
