We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e598682 commit 556790aCopy full SHA for 556790a
1 file changed
ch13/Deck.java
@@ -40,8 +40,8 @@ public Card[] getCards() {
40
* Displays each of the cards in the deck.
41
*/
42
public void print() {
43
- for (int i = 0; i < this.cards.length; i++) {
44
- System.out.println(this.cards[i]);
+ for (Card card : this.cards) {
+ System.out.println(card);
45
}
46
47
@@ -117,4 +117,9 @@ public Deck mergeSort() {
117
return this;
118
119
120
+ /**
121
+ * Reorders the cards (in place) using insertion sort.
122
+ */
123
+ public void insertionSort() {
124
+ }
125
0 commit comments