Answers for "javascript iterate through map values with while loop"

3

loop through map in js

const object = {'a': 1, 'b': 2, 'c' : 3};
for (const [key, value] of Object.entries(object)) {
  console.log(key, value);
}
Posted by: Guest on April-07-2020
1

iterate map

Map<String, String> map = ...
for (Map.Entry<String, String> entry : map.entrySet()) {
    System.out.println(entry.getKey() + "/" + entry.getValue());
}
Posted by: Guest on May-19-2021

Code answers related to "javascript iterate through map values with while loop"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language