Class StringHashtable

public class StringHashtable
{
  // Constructors
  public StringHashtable();
  public StringHashtable(int size);

  // Methods
  public Object get(String key);
  public Object get(char chars[], int offset, int length);
  public Object put(String key, Object value);
}

This simple hashtable uses strings as the keys.

Constructors

StringHashtable

public StringHashtable();

Construct empty hashtable.

StringHashtable

public StringHashtable(int size);

Construct empty hashtable.

Methods

get 

public Object get(String key);

Get a value from the hashtable.

get 

public Object get(char chars[], int offset, int length);

Get a value from the hashtable.

put 

public Object put(String key, Object value);

Add object to the hashtable.