code: public void readArray(double[] dataR, double[] dataI) throws IOException {
          int size = dataR.length;
          if (size != dataI.length)
              throw new IllegalArgumentException(
                      "All arrays must be of the same size");
          for (int i = 0; i < size; ++i) {
              dataR[i] = getDouble();
              dataI[i] = getDouble();
          }
      }
docs: Reads the array data. The first array will contain real entries, while
  the second contain imaginary entries