Stuff
public text v1 · immutablepublic class HashMap<K, V> implements Map<K, V> {
int capacity;
int size;
public static class Entry<K, V> implements Map.Entry<K, V> {
K key;
V value;
public K getKey() {
return key;
}
public V getValue() {
return this.value;
// TODO Auto-generated method stub
}
public V setValue(V value) {
// TODO Auto-generated method stub
this.value = value;
return null;
}
public String toString(){
return (this.key +" = " + this.value);
}
}