minimumCapacity = Math.max(minimumCapacity, value.length*2+2);
int max = (minimumCapacity > value.length ? value.length*2+2 : value.length); minimumCapacity = Math.max(minimumCapacity, max);
  public synchronized void ensureCapacity (int minimumCapacity)    {      if (shared || minimumCapacity > value.length)	{	  minimumCapacity = Math.max(minimumCapacity, value.length*2+2);	  char[] nb = new char[minimumCapacity];	  System.arraycopy(value, 0, nb, 0, count);	  value = nb;	  shared = false;	}    }