package mug13; public class Say implements Verb { //feilds WorldBuilder worldOps; //constructor public Say(WorldBuilder _worldOps) { worldOps = _worldOps; } //methods //needs to return an array of length three with two strings to broadcast, first to the subject and second to everyone else. public String[] execute(String subject, String object) { try { Person pete = worldOps.mapPerson(subject); String[] action = {"You say, '" + object + "'", pete.getName() + " says, '" + object + "'"}; return action; } catch(Exception e) { String[] action = {"You Don't Exist, this should never happen", null}; return action; } }//perform(Person,Noun) }