posted 8 years ago
Hi to all,
I have a little problem. I use a map of type ConcurrentHashMap to store old filenames and renamed filenames
e.g. Map<String,String> renameMap =......
What i want is how could i delete some key-values in my map(based on some criteria)?Not all.
Thanks in advance
I have a little problem. I use a map of type ConcurrentHashMap to store old filenames and renamed filenames
e.g. Map<String,String> renameMap =......
What i want is how could i delete some key-values in my map(based on some criteria)?Not all.
Thanks in advance
Antonis
posted 8 years ago
Through its entrySet() method yes. Map doesn't have an iterator() method itself (although maybe it should have...).
Ulf Dittmer wrote:you can obtain an iterator() from the Map
Through its entrySet() method yes. Map doesn't have an iterator() method itself (although maybe it should have...).
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions

Don't get me started about those stupid light bulbs. |