public void Accept(string s) { int t = head - 1; if (t < 0) t = history.Length - 1; history[t] = s; }