+ 7
Can keys be looped in hasmap?
HashMap<String, Character> q = new HashMap<String, Character>(); q.put("Hello",37); <<<<<<<here Can this be looped to print the value multiple times maby in a for or while loop? sololearn dosen't cover this very well so im unsure what types of methods i can use with it to call individual keys and values.
2 Answers
+ 7
Yes
+ 5
show meeeee! š my plan is to call a key loop it and to cast the value to char