1 package sample.vector; 2 3 public class Sample2 extends java.util.Vector { add(Object[] args)4 public Object add(Object[] args) { 5 super.addElement(args[0]); 6 return null; 7 } 8 at(Object[] args)9 public Object at(Object[] args) { 10 int i = ((Integer)args[0]).intValue(); 11 return super.elementAt(i); 12 } 13 } 14