public static int deleteN(char s[], int pos, int len, int nChars) {assert pos + nChars <= len;if (pos + nChars < len) { System.arraycopy(s, pos + nChars, s, pos, len - pos - nChars);}return len - nChars;}
public static int DeleteN(char[] s, int pos, int len, int nChars){Debug.Assert(pos + nChars <= len);if (pos + nChars < len) {Array.Copy(s, pos + nChars, s, pos, len - pos - nChars);}return len - nChars;}