@@ -0,0 +1,1888 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage real.estate.dao;%0A%0A/**%0A *%0A * @author Chathu%0A */%0Apublic abstract class List implements Listable %7B%0A%0A    protected Listable%5B%5D list;          // Array to hold this list%E2%80%99s elements %0A    protected int numItems;             // Number of elements on this list %0A    protected int currentPos;           // Current position for iteration%0A%0A    // Instantiates and returns a reference to an empty list object %0A    // with room for maxItems elements %0A    public List(int maxItems) %7B%0A        numItems = 0;%0A        list = new Listable%5BmaxItems%5D;%0A    %7D%0A%0A    public boolean isFull() // Returns whether this list is full %0A    %7B%0A        return (list.length == numItems);%0A    %7D%0A%0A    public int lengthIs() // Returns the number of elements on this list %0A    %7B%0A        return numItems;%0A    %7D%0A    // Returns true if an element with the same key as item is on this list; %0A    // otherwise, returns false%0A    public abstract boolean isThere(Listable item);%0A%0A   // Returns a copy of the list element with the same key as item%0A    public abstract Listable retrieve(Listable item);%0A%0A    // Adds a copy of item to this list %0A    public abstract void insert(Listable item);%0A%0A    // Deletes the element with the same key as item from this list %0A    public abstract void delete(Listable item);%0A%0A    // Initializes current position for an iteration through this list%0A    public void reset() %0A    %7B%0A        currentPos = 0;%0A    %7D%0A    %0A    // Returns copy of the next element on this list %0A    public Listable getNextItem() %0A    %7B%0A        Listable next = list%5BcurrentPos%5D;%0A        if (currentPos == numItems - 1) %7B%0A            currentPos = 0;%0A        %7D else %7B%0A            currentPos++;%0A        %7D%0A        return next.copy();%0A    %7D%0A%0A%7D%0A

Add Abstract List Class