package bridge; import java.util.*; public class FlyingEnchantment { private String sword = "sword"; private String hammer = "hammer"; private String value = "TheItemBeginsToGlowFaintly."; public void updateSword(String sword) { this.sword = sword; value = this.value; } public void updateHammer(String hammer) { this.hammer = hammer; value = this.value; } public String getValue() { return new String(value); } }