CSC 313: Data Structures in Java

Autumn 2002

Individual Assignment 2

Designing and Implementing a Collection Class: The Poker Hand

Due Wednesday October 2 before 11:30pm

Create a class called PokerHand that simulates a five-card poker hand using the Card class (online specification). You are to design the class, but it must provide methods to accomplish the following:

Descriptions of the different kinds of poker hands and their relative ranks can be found online.

Your code should have the following:

Here is some advice for designing and implementing your class:

Submission

Before the due date and time, you should submit the following three files through the submission Web page: