How to convert Vector with string to String array in java?
Try this:
vector.toArray(new String[0]);
Edit: I just tried it out, new String[vector.size()] is slower then new String[0]. So ignore what i said before about vector.size(). String[0] is also shorter to write anyway.
new String[vector.size()]
new String[0]
String[0]