- list to array
List<String> list = new ArrayList<>();
String[] strArray = list.toArray(new String[list.size()]);

OR
String[] strArray = list.toArray(new String[0]);


- array to list
List<String> newList = Arrays.asList(strArray());

List<String> newList = new ArrayList<>(Arrays.asList(strArray());

http://arabiannight.tistory.com/entry/자바Java-String을-List-List를-String-배열로-변환


https://stackoverflow.com/questions/5374311/convert-arrayliststring-to-string-array


https://hianna.tistory.com/551


https://www.baeldung.com/convert-array-to-list-and-list-to-array




- set to list & list to set
https://www.baeldung.com/convert-list-to-set-and-set-to-list


- set to array & array to set
https://www.baeldung.com/convert-array-to-set-and-set-to-array






Posted by 張's blog
,