Here you can find the source of arrayIndexCheck(char[] text, int startPos, int endPos)
public static void arrayIndexCheck(char[] text, int startPos, int endPos)
//package com.java2s; //License from project: Apache License public class Main { public static void arrayIndexCheck(char[] text, int startPos, int endPos) { if (text == null || startPos < 0 || startPos > endPos) { throw new ArrayIndexOutOfBoundsException("text.length: " + (text == null ? 0 : text.length) + ", startPos: " + startPos + ", endPos: " + endPos); }//from ww w. j a v a 2 s. c o m } }