class Dictionary {

	public void put(K key, V value) {
		Objects.requireNonNull(key, "Key cannot be null.");

		DictionaryEntry<K, V> entry = findKeyOrReturnNull(key);

		if (entry == null) {
			entries.add(new DictionaryEntry<>(key, value));
		}
		else {
			entry.value = value;
		}
	}

	public  Dictionary();

}