/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package real.estate.dao;

/**
 *
 * @author Chathu
 */
public abstract class List {

    public Listable[] list;         
    public int num_of_items;              
    public int position;           

    
    public List(int maxItems) {
        num_of_items = 0;
        list = new Listable[maxItems];
    }

    public boolean isFull() 
    {
        return (list.length == num_of_items);
    }

    public int lengthIs() 
    {
        return num_of_items;
    }
    
    public abstract boolean isThere(Listable item);

   // Returns a copy of the list element with the same key as item
    public abstract Listable retrieve(Listable item);

    // Adds a copy of item to this list 
    public abstract void insert(Listable item);

   
    public abstract void delete(Listable item);

    
    public void reset() 
    {
        position = 0;
    }
    
    
    public Listable getNextItem() 
    {
        Listable next = list[position];
        if (position == num_of_items - 1) {
            position = 0;
        } else {
            position++;
        }
        return next.copy();
    }

}

@@ -372,22 +372,65 @@
 on;     
-      
+%0A    %0A    public List()%7B%0A        this(100);%0A    %7D
 %0A%0A    %0A 

Add No-argument constructor