Recitation 7:Interfaces
October 19, 2012
Snarf the recitation 7 code.
You have been given three classes that each implement the interface
IMapper.java
, a simple Map implementation.
In HashMain.java you will need to create three objects,
hash1
,
hash2
, and
hash3
of type IMapper where each of your hash variables
implements a map using a different data structure. One will use an array list, one a hash set, and one a linked list. After adding your three
IMapper objects, your code should compile. Run your code loading in 5 different data files from your Markov assignment.
Submit through ambient a pdf file containing:
- A plot of your results of the data from the three different IMapper objects (using the 5 different data files)
- A brief discussion of the differences between the three different implementations of IMapper
- A brief discussion of the advantages of using an interface.