so that's my situation:
I have a method which gets a String and a bunch of other information. Depending on the content of the String, I want to put the other information into one of two Maps I have. Like this:
if (string.equals("A")) {
A.put[..]
} else if (string.equals("B")) {
B.put[..]
}
but because this situation happens a few times in my method, I don't want to use if/else every time because of redundancy.
Soo I guess what I need is some kind of object/pointer/reference which I can assign the Map I want to use once in the beginning and then use it as a placeholder.