This method of the Command class retrieves the name of a Command object.
public String getName();
Returns a string.