// 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) 
public class Test {
    public static void main(String[] args) {
        Container c1 = new Container();
        c1.add(new Data(1, "a"));
        c1.add(new Data(2, "bb"));
        c1.add(new Data(3, "ccc"));
        Container c2 = (Container)c1.clone();
        System.out.println(c1.get(2) + " " + c2.get(2));
        System.out.println(c1.get(2).getSv() + " " + c2.get(2).getSv());
    }
}
