Vector V=new Vector();
for (int i=1; i<=10; i++) V.add(new Integer(i));
Enumeration e=V.elements();
while (e.hasMoreElements())
{ int i=((Integer)e.nextElement()).intValue();
System.out.println(i);
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment