Welcome. I have a generic void method swap that takes a Map and 2 keys. The method will swap the values associated with the keys in the Map. I already checked that both keys are contained in the Map somewhere else, but in this method, I can't use looping. My method answer:
public static<K, W> swap(Map<K,V m, K key1, K key2>){
m.put(key2, m.put(?)) // I don't really understand what I would have to
// put in this part, so how would i have to remember
// the 1st key, would I just set the value to
// a new initialized key?
}