---
type: archive
area: archive
status: archived
date: 2026-05-03
created: 2026-05-03
updated: 1980-01-01
tags:
  - archive
---
<mark style="background: #FF5582A6;"> A data structure that stores unique keys to values ex.<Integer, String></mark>
- Each key/value pair is known as an Entry 
- FAST insertion, look up, deletion of key/value pairs 
- Not ideal for small data sets, great with large data sets

```Java
Hashtable<Integer, String> table = new Hashtable<>(10);
table.put(100, "Spongebob");
table.put(123, "Patrick");
table.put(321, "Sandy");
table.put(555, "Squidward");
table.put(777, "Gary");
for(Integer key : table.keySet()) {
System.out.println(key + "\t" + table.get(key)
}
```