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

public static void checkStartAndEnd ( int len , int start , int end ) { if ( start < 0 || end > len ) { throw new ArrayIndexOutOfBoundsException ( "start < 0 || end > len." + " start=" + start + ", end=" + end + ", len=" + len ) ; } if ( start > end ) { throw new IllegalArgumentException ( "start > end: " + start + " > " + end ) ; } }
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);}}
