Java Array Equal arrayEqual(char[] a, char[] b, int aStart, int bStart, int length)

Here you can find the source of arrayEqual(char[] a, char[] b, int aStart, int bStart, int length)

Description

array Equal

License

Open Source License

Declaration

public static boolean arrayEqual(char[] a, char[] b, int aStart, int bStart, int length) 

Method Source Code

//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;
    }
}

Related

  1. allEquals(final String value, final String... strings)
  2. allEquals(int needle, byte... bytes)
  3. allEquals(int y, int y2, int y3)
  4. areEqualArrays(Object[] a1, Object[] a2)
  5. arrayEq(byte[] a, byte[] b)
  6. arrayEquals(byte[] data, byte[] expected)
  7. arrayEquals(byte[] left, byte[] right)
  8. arrayEquals(int[] a1, int[] a2)
  9. arrayEquals(int[] arr1, int[] arr2)