Java Array Index Of arrayIndexCheck(char[] text, int startPos, int endPos)

Here you can find the source of arrayIndexCheck(char[] text, int startPos, int endPos)

Description

array Index Check

License

Apache License

Declaration

public static void arrayIndexCheck(char[] text, int startPos, int endPos) 

Method Source Code

//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
    }
}

Related

  1. arrayIndex(T[] arr, T item)
  2. arrayIndexClean(String indx)
  3. arrayIndexFor(final String raw)
  4. ArrayIndexOf(byte[] data, byte[] dest)
  5. arrayIndexOf(int needle, int[] haystack)