如何实现数组和 List 之间的转换?

千锋教育

    数组转 List:使用 Arrays. asList(array) 进行转换。


    List 转数组:使用 List 自带的 toArray() 方法。


    代码示例: