while loops and lists.
nwhile( more list elements to process )
n process the next element
n
ne.g.
n int index;
n index = 0;
n while (index < list.size()) {
n process list.get(index);
n index = index + 1;
n }
nWe must guarantee that the while condition eventually will become false.