How do i convert String
array to java.util.List
?
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
|
This is a list view of the array, the list is partly unmodifiable, you can't add or delete elements. But the time complexity is O(1). If you want a modifiable a List:
This will copy all elements from the source array into a new list (complexity: O(n)) |
|||||||||
|
Use the static |
|||
|
|
|||
|