Is there any way to copy or convert a vector to arraylist in Java?
Tell me more
×
Stack Overflow is a question and answer site for
professional and enthusiast programmers. It's 100% free, no registration required.
Yup - just use the constructor which takes a collection as its parameter:
Note that it only does a shallow copy. |
|||
|
i´m not sure if it is
|
||||
|
I just wrote a class to do the same thing, but is more flexible as it will accept Objects accordingly.
|
|||
|