package lectures.mvc.collections;
import util.annotations.WebDocuments;
import lectures.arrays.collections_implementation.AStringHistory;
import lectures.arrays.collections_implementation.StringHistory;
@WebDocuments({"Lectures/MvcCollections.pptx", "Lectures/MvcCollections.pdf", "Videos/MvcCollections.avi"})
public class AStringHistoryDemoer {
    public static void main (String[] args) {
        createAndDisplayHistory(new AStringHistory());
        createAndDisplayHistory(new AnObservableStringHistory());
    }   
    public static void createAndDisplayHistory(StringHistory stringHistory) {
        bus.uigen.ObjectEditor.edit(stringHistory);
        stringHistory.addElement("James Dean");
        stringHistory.addElement("Joe Doe");
        stringHistory.addElement("Jane Smith");
        stringHistory.addElement("John Smith");     
    }
    
}