14 lines
287 B
Java
14 lines
287 B
Java
|
|
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);
|
||
|
|
}
|
||
|
|
}
|