code: public void removeRange(int first, int last) {
          int ele;
  
          for (ele = first; ele <= last; ele++) {
              remove(ele);
          }
      }
docs: Remove all elements in the indicated range.
  @param  first  first element to remove
  @param  last   last element to remove