Code example for Vector

Methods: elementAt, isEmpty

0
    public Vector getWhens() {
        return whens;
    } 
 
    public When getFirstWhen() { 
        if (whens.isEmpty()) {
            return null; 
        } 
        return (When) whens.elementAt(0);
    } 
 
    public Vector getReminders() {
        return reminders;
    } 
 
    public void addReminder(Reminder reminder) {
        if (reminders == null) {
            reminders = new Vector();
        } 
        reminders.add(reminder);
    }