This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
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).]