Skip to content

Commit 556790a

Browse files
committed
reviewed ch13
1 parent e598682 commit 556790a

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

ch13/Deck.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public Card[] getCards() {
4040
* Displays each of the cards in the deck.
4141
*/
4242
public void print() {
43-
for (int i = 0; i < this.cards.length; i++) {
44-
System.out.println(this.cards[i]);
43+
for (Card card : this.cards) {
44+
System.out.println(card);
4545
}
4646
}
4747

@@ -117,4 +117,9 @@ public Deck mergeSort() {
117117
return this;
118118
}
119119

120+
/**
121+
* Reorders the cards (in place) using insertion sort.
122+
*/
123+
public void insertionSort() {
124+
}
120125
}

0 commit comments

Comments
 (0)