A way of keeping a list of values as the value in a Java HashMap (example with people to grades)

Tremaine Eto
Dev Genius
Published in
2 min readMay 2, 2021

--

Photo by heylagostechie on Unsplash

If you’re wondering how to keep a list of values type as the value in a key, value pair in a HashMap data structure in Java, then you’re in the right place.

This article will go over one way to accomplish this.

--

--

Senior Software Engineer @ Iterable | Previously worked at DIRECTV, AT&T, and Tinder | UCLA Computer Science alumni | Follow me for software engineering tips!