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
Post a Comment