Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** A RoundTable is a table with numbered seats where
- * players participate in the hot potato game.
- * @author J. Dalbey CPE 103
- * @version 2013.10.12
- */
- public class RoundTable
- {
- /** A numbered seat at the table. */
- static class Seat
- {
- int value; // the seat number
- Seat next; // link to next seat
- }
- /** Create a round table with seats 1..size.
- * @param size the number of seats to put in the table
- * @return reference to last seat (which points to the
- * first seat, completing the circle).
- * @pre size >= 1
- */
- public Seat create(int size)
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment