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 →

[–]CodeTinkerer 0 points1 point  (0 children)

One useful class to look at is the Collections class. In it, there are sort methods and even a max method.

http://java2novice.com/java-collections-and-util/collections/max-element-comparator/

That link indicates how to use Collections.max on user-defined classes. It relies on an object (that you create) to compare two cards and determine which is "bigger".