previous | start | next

Symbol Table ADT

public class ST<Key, Value>
{
  public void put(Key k, Value v) {...}
  public Value get(Key k) {...}
  public void delete(Key k) {...}
  public Iterable<Key> keys();
  public boolean contains(Key key) {...}
  public int size() {...}
  public boolean isEmpty() {...}
}

Question: How can you print all the key value pairs?



previous | start | next