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

Python
C++

JAVA


PHP
SQL
Alice

StackExample


StackInterface.java

import java.util.Iterator;
/**
 * A simple Stack interface
 * 
 * @author Chuck Cusack
 * @version 1.0, February 2008
 */

public interface StackInterface<T>
{
    public boolean push(T item);
    public T pop();
    public T peek();
    
    public boolean isEmpty();
    public boolean isFull();
    public Iterator<T> iterator();
}