// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
package ws.server;

import java.util.*;

public class Test {
    private List lst;
    public Test() {
        lst = new ArrayList();
    }
    public void add(String item) {
        lst.add(item);
    }
    public String[] getAll() {
        String[] res = new String[lst.size()];
        for(int i = 0; i < res.length; i++) {
            res[i] = (String)lst.get(i);
        }
        return res;
    }
}
