Java Char Array Equal charArrayEqual(char[] arr, char[] arr1)

Here you can find the source of charArrayEqual(char[] arr, char[] arr1)

Description

char Array Equal

License

Open Source License

Declaration

public static boolean charArrayEqual(char[] arr, char[] arr1) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static boolean charArrayEqual(char[] arr, char[] arr1) {

        if (arr.length != arr1.length)
            return false;
        for (int i = 0; i < arr.length; ++i) {
            if (arr[i] != arr1[i])
                return false;
        }//from  w w  w.j a v  a2s .  com
        return true;
    }
}