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

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -