Closed eganjs closed 4 years ago
https://github.com/hammundo/BlackjackAndroidApp/blob/ad6deed5bc1c8bceb7ec8ea49605dc0b2403ae7e/app/src/main/java/com/example/blackjack_android_app/Deck.java#L78
The usage of pop in the method name popTopCard suggests this method removes the top card, which it returns. I think peek would be more appropriate, unless the method is reworked
pop
popTopCard
peek
https://github.com/hammundo/BlackjackAndroidApp/blob/ad6deed5bc1c8bceb7ec8ea49605dc0b2403ae7e/app/src/main/java/com/example/blackjack_android_app/Deck.java#L78
The usage of
pop
in the method namepopTopCard
suggests this method removes the top card, which it returns. I thinkpeek
would be more appropriate, unless the method is reworked