code: public static boolean contains(double[] doubleArray, double value)
      {
          for (double each : doubleArray)
          {
              if (Double.doubleToLongBits(each) == Double.doubleToLongBits(value))
              {
                  return true;
              }
          }
          return false;
      }
docs: Returns <tt>true</tt> if the specified double array contains the specified double element.