Java Utililty Methods Char Array Compare

List of utility methods to do Char Array Compare

Description

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

Method

booleancharArrayCMP(char[] src, char[] des)
char Array CMP
if (src.length != des.length)
    return false;
for (int i = src.length - 1; i >= 0; i--) {
    if (src[i] != des[i])
        return false;
return true;
intcompareTo(char[] chars1, char[] chars2)
compare To
int r = compareTo(chars1.length, chars2.length);
if (r != 0) {
    return r;
for (int i = 0; i < chars1.length; i++) {
    r = compareTo(chars1[i], chars2[i]);
    if (r != 0) {
        return r;
...