basic methods for Maps

 

■   Here is where to find Map methods in the Java API.

 

 

HashMap

TreeMap

In the

Map

interface

.clear( ),  .containsKey(...),  .containsValue(...),  .entrySet( ),  .get(...),  .isEmpty( ),

.keySet( ),  .put(...),  .putAll(...),  .remove(...),  .size( ),  .values( )

In the

class itself

- -

.firstKey( ), .headMap(...), .lastKey( ),

.subMap(...), .tailMap(...)