Please give immediately how to conert Vector object to an integer? We can convert integer to object by using "v.add(new Integer(vx));" But the reverse? Please give the answer today if possible. Thank you. Jyotsna.
Art, In your example, why do you need to use the inValue() method when retrieving the int out of the vector? Isn't it enough to simply cast the object to an Integer? Also, why bother trying to catch the exception, when your for loop is precisely the size of the vector? Thanks, ~Ryan [This message has been edited by ryan burgdorfer (edited February 01, 2001).]