All pastes #248171 Raw Edit

Untitled

public text v1 · immutable
#248171 ·published 2006-11-14 09:47 UTC
rendered paste body
import java.util.*;
/**
 * Write a description of class ListAssignment here.
 * 
 * @author Thomas Horner
 * @version 11-14-06
 */
public class ArrayListSet implements Set
{

    ArrayList aList;
    public ArrayListSet()
    {
        aList = new ArrayList();
    }
    
    public int size()
    {
        return aList.size();
    }
    
    public boolean add(Object o)
    {
        return (aList.add(o));
    }
    
    public boolean remove(Object o)
    {
        return (aList.remove(o));
    }
}