/Users/lyon/j4p/src/addBk/print/labels/MailingLabelList.java

1    package addBk.print.labels; 
2     
3    import java.util.Vector; 
4     
5    public class MailingLabelList { 
6        private Vector labelVector = new Vector(); 
7     
8        public MailingLabelList() { 
9        } 
10    
11       public void add(MailingLabel st) { 
12           labelVector.addElement(st); 
13       } 
14    
15       public MailingLabel[] getLabels() { 
16           MailingLabel s[] = 
17                   new MailingLabel[labelVector.size()]; 
18           labelVector.copyInto(s); 
19           return s; 
20       } 
21    
22   } 
23