Change String [] to Vector <String>
5 answers
, , Arrays.asList, . , , . http://download.oracle.com/javase/6/docs/api/java/util/Vector.html, . , , , List, Collections.synchronizedList ? http://download.oracle.com/javase/6/docs/api/java/util/Collections.html#synchronizedList%28java.util.List%29
API, Vector, , , ...
+2
Check out this example: http://www.java2s.com/Code/Java/Collections-Data-Structure/ConvertanArraytoaVector.htm
It will look like this:
String[] arr = { "1", "2", "3", "4" };
Vector<String> v = new Vector<String>(Arrays.asList(arr));
+1