code: public void remove(int i) {
          Iterator<Entry> it = array.iterator();
          while (it.hasNext()) {
              Entry e = it.next();
              if (e.i == i) {
                  it.remove();
                  break;
              }
          }
      }
docs: Removes an entry.
  @param i the index of entry.