I am trying to write a method which return the playing cards (Array<String>
) in reverse order.
Each card is represented as a combination of : card values (A, 1-9, T, J,Q,K) and suits (h=hearts, d=diamonds, c=clubs, s=spades) also 10 is always represented by T not by 10 as two characters.
How to write a reverse method for Array<String>
in Java?
public Array<String> reverseDeck(Array<String> deckOfCards) {
}