Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In the next Try It Out section you create a map that uses a list as the underlying storage mechanism. The implementation is very straightforward and easy to follow; and although it isn't particularly efficient, it is useful for small data sets.
Try It Out: Testing and Implementing a List MapStart by creating the ListMapTest as follows: package com.wrox.algorithms.maps;
public class ListMapTest extends AbstractMapTestCase {
protected Map createMap() {
return new ListMap();
}
} |