Skip to content

Glossary: Java Basics

entrySet

Also written: entry, getKey, getValue, Map.Entry

A map method that gives every key-value pair so you can loop over them. Each entry has `getKey()` and `getValue()`.

Where the book teaches it

Related terms

MapFor-each loop