Programming Resources
For Fun and Learning
Charles Cusack
Computer Science
Hope College
main

Python
C++

JAVA


PHP
SQL
Alice

SimpleListDemo


MyList.java

import aLibrary.*;

public class MyList extends SimpleList {
    private int index = 0;
//------------------------------------------------------------------------------
    public MyList() {
        super();
    }
//------------------------------------------------------------------------------
    public void start() {
        super.start();
        index = 0;
    }
//------------------------------------------------------------------------------
    public void forth() {
        if(!this.isOff()) {
            index++;
            super.forth();
        }
    }
//------------------------------------------------------------------------------
    public void insert(Object j) {
        super.insert(j);
    }
//------------------------------------------------------------------------------
    public int index() {
        return index;
    }
}