The Java Collections Framework Again
Projects
11.28 |
Write an UnorderedList class which implements our Set interface but does not require that its generic type is Comparable. |
11.29 |
Implement hash tables using chaining. |
11.30 |
Implement the game of Geography (Figure 11-43). Your implementation should allow any number of people to play against the computer. You should be able to find a good list of city names by searching the web for files called cities.txt. |
Geography |
---|
Players: 2 or more. |
Object: To be the last player eliminated. |
Play: The first player names a city. The next player then names another city which starts with the letter at the end of the previous city name. For example, the first player might say, 'Portland,' the next player 'Denver,' the next 'Raleigh,' and so on. |
Elimination: A player is eliminated if she can't think of a suitable city or if she names a city that has already been used in the current game. |