aboutsummaryrefslogtreecommitdiffstats
path: root/sample/vector/Sample2.java
blob: dd5c965e969e4657c36d4e93b0dd5ec8882ea7fa (plain)
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);
    }
}