Java Array array_equals(byte[] foo, byte bar[])

Here you can find the source of array_equals(byte[] foo, byte bar[])

Description

arraequals

License

Open Source License

Declaration

static boolean array_equals(byte[] foo, byte bar[]) 

Method Source Code

//package com.java2s;

public class Main {
    static boolean array_equals(byte[] foo, byte bar[]) {
        int i = foo.length;
        if (i != bar.length)
            return false;
        for (int j = 0; j < i; j++) {
            if (foo[j] != bar[j])
                return false;
        }//from   www.j a  va 2  s . co  m
        //try{while(true){i--; if(foo[i]!=bar[i])return false;}}catch(Exception e){}
        return true;
    }
}

Related

  1. array_int2float(int ai[])
  2. array_intAddLimit(int[] in, int value, int limit)
  3. arrayed(int arrays, String inner)
  4. arrayEndsWith(final byte[] array, final byte[] str)