Java Utililty Methods Char Array Match

List of utility methods to do Char Array Match

Description

The list of methods to do Char Array Match are organized into topic(s).

Method

booleancharArrayRegionMatches(char[] value, int startPos, CharSequence toMatch)
char Array Region Matches
int matchLen = toMatch.length(), endPos = startPos + matchLen;
if (endPos > value.length) {
    return false;
for (int matchIndex = 0, i = startPos; i < endPos; i++, matchIndex++) {
    if (value[i] != toMatch.charAt(matchIndex)) {
        return false;
return true;