package strategy; import java.util.*; public class MeleeStrategy { private Map.Entry<Integer, Object> value = new AbstractMap.SimpleEntry<>(1, "WithYourExcaliburYouSeverTheDragon'sHead!"); public void updateDragonSlayer(Map.Entry<Object, Object> dragonSlayer) { Map.Entry<Integer, Object> temp_if3; if ((this.value.getKey()==dragonSlayer.getKey())) { temp_if3 = this.value; } else { temp_if3 = new AbstractMap.SimpleEntry<>(0, "none"); } value = temp_if3; } public Map.Entry<Integer, Object> getValue() { return new AbstractMap.SimpleEntry<>(value); } }