// 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) 
import java.util.*;

public class GenericsAgain {
    public static void main(String[] args) {
        List<String> lst = new ArrayList<String>();
        lst.add("a");
        lst.add("bb");
        lst.add("ccc");
        for(int i = 0; i < lst.size(); i++) {
            System.out.println(lst.get(i));
        }
        String[] a = lst.toArray(new String[0]);
        for(int i = 0; i < a.length; i++) {
            System.out.println(a[i]);
        }
    }
}
