code: public int[] readIntArray(int length) throws IOException {
          int arr[] = new int[length];
          for (int i = 0; i < length; i++) {
              arr[i] = readInt();
          }
          return arr;
      }
docs: Read an array of 32bit words.
  
  @param length
  size of the array (in 32bit word count, not byte count)
  @return the array of 32bit words
  @throws IOException