Casting and ArrayList
<p>I have an ArrayList that contains a number of songs objects.</p>

<pre><code>ArrayList&lt;Song&gt; aSong = new ArrayList&lt;Song&gt;();
</code></pre>

<p>The Song class looks like this:</p>

<pre><code>public class Song {
private String sName;
private String sLength;

public Song(String name, String length){
    sName = name;
    sLength= length;

}

public String getName(){
    return sName;

}   

public String getLength(){

    return sLength;
}


public void edit(String name, String length){
    sName = name;
    sLength= length;
}
</code></pre>

<p>}</p>

<p>I'm trying to see if a song exists with the ArrayList method "contains"</p>

<pre><code>   // example
   aSong.contains("Song 1")
</code></pre>

<p>but this returns false even though the song does really exist in the ArrayList. </p>

<p>Any help would be highly appreciated and thank you in advance.</p>
