Here you can find the source of charArrayEqual(char[] arr, char[] arr1)
public static boolean charArrayEqual(char[] arr, char[] arr1)
//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; } }