예제 #1
0
        public V Next()
        {
            if (n >= list.Size())
            {
                throw new NoSuchElementException();
            }
            V v = list.Get(n);

            n++;
            return(v);
        }
예제 #2
0
 public virtual E Get(int index)
 {
     RangeCheck(index);
     CheckForComodification();
     return(l.Get(index + Offset));
 }