# Java Maps

> Basic implementation of maps in Java.

- Canonical: https://dennisokeeffe.com/blog/2019-01-14-java-maps
- Published: 2019-01-14
- Updated: 2019-01-14

Basic example of creating a new map and accessing the parameters:

```java
// Example of a basic map
Map<String, String> map = new HashMap<String, String>();
map.put("dog", "type of animal");
System.out.println(map.get("dog"));
```
