Conversion between arrays and lists

Array --> List
Arrays.asList()

List --> Array
list.toArray()

Deeply understand List's toArray() method and toArray(T a) method

Guess you like

Origin blog.csdn.net/weixin_40816843/article/details/113767281