code: public final static boolean arrayEquals(int[] source, Object target) {
          if (source == null) return (target == null);
          if (!(target instanceof int[])) return false;
          int[] targ = (int[]) target;
          return (source.length == targ.length
                  && arrayRegionMatches(source, 0, targ, 0, source.length));
      }
  
      /**
       * Convenience utility to compare two double[]s
       * Ought to be in System
       */
      public final static boolean arrayEquals(double[] source, Object target) {
          if (source == null) return (target == null);
          if (!(target instanceof double[])) return false;
          double[] targ = (double[]) target;
          return (source.length == targ.length
                  && arrayRegionMatches(source, 0, targ, 0, source.length));
      }
docs: Convenience utility to compare two int[]s
  Ought to be in System