Skip to content

Glossary: Java Beyond the Basics

TreeMap

Also written: floorKey, floorEntry, headMap

A map that keeps its keys sorted, so floorKey(30) finds the largest key at or below 30, handy for ranges such as shipping weight bands.

Where the book teaches it

Related terms

Collection