public class ListElem // ListElem has 2 parameters { public KeyType key; public ValueType value; public ListElem prev; public ListElem next; public ListElem(KeyType k, ValueType v) { key = k; value = v; prev = null; next = null; } public String toString() { return( "(" + key + "," + value + ")" ); } }