code: public int[] getPacked() {
          int length = this.array.length();
          int[] packed = new int[length];
          for (int i = 0; i < length; i++) {
              packed[i] = this.array.get(i);
          }
          return packed;
      }
docs: Gets a packed version of this array.  Tearing may occur if the array is updated during this method call.