KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sample > vector > Sample2


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