Skip to content

Commit e598682

Browse files
committed
reviewed ch12
1 parent 4e68e64 commit e598682

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ch12/Search.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public static Card[] makeDeck() {
2222
* Displays the given deck of cards.
2323
*/
2424
public static void printDeck(Card[] cards) {
25-
for (int i = 0; i < cards.length; i++) {
26-
System.out.println(cards[i]);
25+
for (Card card : cards) {
26+
System.out.println(card);
2727
}
2828
}
2929

0 commit comments

Comments
 (0)