code: public static boolean endsWith(Object array1[], Object array2[]){
          return equals(array1, array1.length-array2.length, array2, 0, array2.length);
      }
docs: Returns true if <code>array1</code> ends with <code>array2</code>