For loop to search for word in string
<p>I can't seem to find the syntax needed for the for loop in this method. I am looking to iterate through the words in the string <code>suit</code>.</p>

<p>EDIT: one thing to note is that cardArray is a ArrayList.</p>

<pre><code>public String getSuit(int card){
    String suit = cardArray.get(card);
    for (String word : suit){
        if (word.contains("SPADES")){
            suit = "SPADES";            
        }
    }
    return suit;
}
</code></pre>
