... away
// get the set of keys
// Set is another generic class like HashMap and ArrayList
// not guaranteed to be in any order
Set listOfHashKeys = demoHashMap.keySet();
// create an Interator so i can loop over the set of keys
Iterator iteratorSoCanForEach = listOfHashKeys.iterator();
if (iteratorSoCanForEach.hasNext()){
do {
Integer currentKey = iteratorSoCanForEach....

http://stoneself.livejournal.com/1076247.html
(Cached)
0 links
Published: 1 year, 2 months ago (Wed, 30 Apr 2008 10:28:35 PDT); 2282 bytes
|