So I'm using an ArrayMap for the first time. Seemed like a good option to link multiple sets of K & V's together. Now, I'd like to iterate through all the keys in the ArrayMap, to find all that contain a specific bit of text (ArrayMap gets filled with user input, that's why it can't be hardcoded).
I've been looking online how to do this, but I haven't really found anything specific to Arraymaps. I found a suggestion for Maps:
for (Map.Entry<...> entry : map.entrySet()) {
// do stuff
}
Unfortunately, that doesn't work (nor does ArrayMap.Entry<...>). This gives me a waing telling me it found an Entry (duh), but requires an Object.
So, the questions that arise:
- Am I using the right method for my purpose, or is there something better?
- Is the ArrayMap the right method, but am I just missing something?
