java - How to get Map values? -



java - How to get Map values? -

i have defined clusters variable shown below in java.

hashmap<double[],string> clusters = new hashmap<double[],string>();

my question how can access string values 1 1 clusters? ex. string name=clusters."?";

you can iterate values using map.values():

for (string value : clusters.values()) { // ... whatever. }

java hashmap

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -