code: public void addRange(int first, int last) {
          int ele;
  
          for (ele = first; ele <= last; ele++) {
              add(ele);
          }
      }
docs: Add all elements in the indicated range. Nothing is set for first &gt; last.
  @param  first   first element to add
  @param  last    last element to add