📜  checkIndex Java 代码示例

📅  最后修改于: 2022-03-11 14:52:47.187000             🧑  作者: Mango

代码示例1
private void checkIndex(int index, int first, int last)
    {
        if (index > last || index < first)
        {
            throw new ArrayIndexOutOfBoundsException();
        }
    }