您的位置: 首页 > IT文章 > Arrays和Collection之间的转换 Arrays和Collection之间的转换 分类: IT文章 • 2023-12-16 19:22:49 1.将数组转换成固定大小的列表: public static <T> List<T> asList(T... a)参数 T... a:数组元素 返回值 List<T>:数组元素的类型的列表 2.将集合转换成数组