 <p>It's called an enhanced <code>for</code> loop. The first part, <code>Card card</code>, says that the current version of <code>Card</code> of this iteration is going to be called <code>card</code>. The second part, <code>myDeck</code>, is the array of <code>Cards</code> that you are iterating through.</p> <p><a href="https://blogs.oracle.com/CoreJavaTechTips/entry/using_enhanced_for_loops_with" rel="nofollow">https://blogs.oracle.com/CoreJavaTechTips/entry/using_enhanced_for_loops_with</a></p>