Here you can find the source of arrayEqual(char[] a, char[] b, int aStart, int bStart, int length)
public static boolean arrayEqual(char[] a, char[] b, int aStart, int bStart, int length)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean arrayEqual(char[] a, char[] b, int aStart, int bStart, int length) { for (int i = 0; i < length; i++) { if (a[aStart + i] != b[bStart + i]) { return false; }//from w ww.j a va2s.co m } return true; } }