The Department of Computer Science & Engineering
cse@buffalo
STUART C. SHAPIRO: CSE 115 C

CSE 115
Introduction To Computer Science for Majors I
Lecture C
Lecture Notes #24
Stuart C. Shapiro
Spring, 2007


HashMap

java.util.HashMap<K,V> is a class of structures that map one object, the key, to another object, the value.

The most useful methods of java.util.HashMap<K,V> are:

Note that both the set returned by keySet() and the collection returned by values() support for each loops.

First Previous Next

Copyright © 2007 by Stuart C. Shapiro. All rights reserved.

Last modified: Mon Nov 26 13:47:48 EST 2007
Stuart C. Shapiro <shapiro@cse.buffalo.edu>