I’ve simple question.
I set:
HashMap<A, B> myMap = new HashMap<A, B>();
...
myMap.put(...)
...
Now I want to Loop through myMap and get all the keys (of type A). how can I do that?
I want to get all keys from myMap by loop, and send them to “void myFunction(A param){…}”.
Here’s how you can get the key set:
I don’t know what “passing on” means. I don’t know what “parsing” means for a HashMap, either. Except for getting the keys out of the Map, this question makes no sense whatsoever. Voting to close.