sbool charArrayRegionMatches(char[] a, int aFrom, char[] b, int bFrom, int n) { for i to n: if (a[aFrom+i] != b[bFrom+i]) false; true; }