for (i = lo; i < hi; ++i)
for (i = lo; i <= hi; ++i)
  public int[] getSelectedIndices()  {    int lo, hi, n, i, j;    if (selectionModel.isSelectionEmpty())      return new int[0];    lo = selectionModel.getMinSelectionIndex();    hi = selectionModel.getMaxSelectionIndex();    n = 0;    for (i = lo; i <= hi; ++i)      if (selectionModel.isSelectedIndex(i))        n++;    int [] v = new int[n];    j = 0;    for (i = lo; i < hi; ++i)      if (selectionModel.isSelectedIndex(i))        v[j++] = i;    return v;  }