All pastes #902928 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-02-13 21:32 UTC
rendered paste body
package map;

public class HashMap<K, V> implements Map<K, V> {

	int capacity;
	int size;
	public static class Entry<K, V> implements Map.Entry<K, V> {
		public Entry<K,V>{ 
		K key;
		V value;
		}
		public K getKey() {
			return this.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);
		}