This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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 ]