l// class List
lpublic
class List
l{
l // Data fields
l protected String[] listItems;
l // Array to hold list items
l protected int numItems;
l // Number of items currently in list
l protected int currentPos;
l // State variable for iteration
l .
. .
l}