text: public static void checkStartAndEnd(int len, int start, int end){if (start < 0 || end > len){throw new System.IndexOutOfRangeException("start < 0 || end > len." + " start=" +start + ", end=" + end + ", len=" + len);}if (start > end){throw new System.ArgumentException("start > end: " + start + " > " + end);}}