Basic Map get()/put(), no loops. These can be solved with just get(), put(), and containsKey(). No loops required. See the Java Map Introduction for help.