如何将一个元素优雅的转换成一个集合
@Test
public void testArraysList() {
String[] array = {"a","b","c"};
// List<String> strings = Arrays.asList(s);
// ArrayList<String> stringArrayList = new ArrayList<>(strings);
// stringArrayList.add("4");
//或
List<String> collect = Stream.of(array).collect(Collectors.toList());
collect.add("4");
System.out.println(collect);
}