Java Maps

Published: Jan 14, 2019

Last updated: Jan 14, 2019

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

1// Example of a basic map
2Map<String, String> map = new HashMap<String, String>();
3map.put("dog", "type of animal");
4System.out.println(map.get("dog"));
Personal image

Dennis O'Keeffe

Byron Bay, Australia

Share this post

Recommended articles

Dennis O'Keeffe

2020-present Dennis O'Keeffe.

All Rights Reserved.