Java Utililty Methods Char Array Match

List of utility methods to do Char Array Match

  1. HOME
  2. Java
  3. C
  4. Char Array Match

Description

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

Method

boolean charArrayRegionMatches(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;

AltStyle によって変換されたページ (->オリジナル) /