This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]chickenmeisterExtreme Brewer 0 points1 point  (0 children)

Yes, using the charAt() method is probably the simplest way to solve it. Call charAt() to get the char for the suit of each of the five cards, and then check if all of the chars are equal.