This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
As long as you are assured that every element in the vector is a String, try this:
The "toArray()" method in Vector is overloaded; if you don't call the correct one it will only return an array of Object. If you want to cast it to some other type, you have to pass in a "seed" array of that type. As shown in this example, it can have a length of zero. [ November 07, 2003: Message edited by: Wayne L Johnson ]