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