for (int i = 0; i < attrs.length; i += 2) { if (attrs[i].equals(name) && attrs[i+1].equals(value)) return true; } return false;
return value.equals(getAttribute(name));
    public boolean containsAttribute(Object name, Object value)    {      for (int i = 0; i < attrs.length; i += 2)        {          if (attrs[i].equals(name) &&              attrs[i+1].equals(value))            return true;        }      return false;    }