Is there any way to copy or convert a vector to arraylist in Java?
Yup - just use the constructor which takes a collection as its parameter:
Vector<String> vector = new Vector<String>(); // (... Populate vector here...) ArrayList<String> list = new ArrayList<String>(vector);
Note that it only does a shallow copy.
548k questions
547k answers
4 comments
86.3k users