Java Hashset returns false instead of true
<p>This block of code keeps returning false, and I can't figure out why.</p>

<pre><code>List&lt;String&gt; angry = new ArrayList&lt;String&gt;();
while ((anger = angerSt.readLine()) != null) {
    angry.add(anger);
}
angerSt.close();
String[] angrywords = angry.toArray(new String[0]);
String word = "mad"
Set&lt;String&gt; angryWordSet = new HashSet&lt;String&gt;(Arrays.asList(angrywords));
if(angryWordSet.contains(word)) 
{
    System.out.print("Yes");
    return true;
}
else return false;
</code></pre>

<p>The angryWordSet contains the strings mad, angry, livid and fuming. I printed it out to make sure it was there. I somehow keep getting false though. Can someone help with this?</p>