if ((char) ch != ch) return -1; if (fromIndex >= count) fromIndex = count - 1; int i = fromIndex + offset; for ( ; fromIndex >= 0; fromIndex--) if (value[i--] == ch) return fromIndex; return -1;
return lastIndexOf(ch, count - 1);
  public int lastIndexOf(int ch, int fromIndex)  {    if ((char) ch != ch)      return -1;    if (fromIndex >= count)      fromIndex = count - 1;    int i = fromIndex + offset;    for ( ; fromIndex >= 0; fromIndex--)      if (value[i--] == ch)        return fromIndex;    return -1;  }