This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I need to know the proper syntax for removal of an element from a vector. Do I have this correct? Example: I have an object that contains a Vector of Strings named dataType. I have an int variable named elementNumber that specifies the location of the element I want to remove. Would I call the following method to remove the String Object? dataType.remove(elementNumber) Thanks, Landon
from the API remove public Object remove(int index) Removes the element at the specified position in this Vector. shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the Vector.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors