Code example for Vector

Methods: size

0
                public Iterator iterator() {
                    return new Iterator() {
                        int index = 0;
 
                        public boolean hasNext() { 
                            return index < values.size();
                        } 
 
                        public Object next() {
                            if (index < values.size()) {
                                Map.Entry me = new Map.Entry() {
                                    Object v = values.elementAt(index);
 
                                    Object k = keys.elementAt(index);
 
                                    public Object getKey() {
                                        return k;
                                    } 
 
                                    public Object getValue() {
                                        return v;