1. Array 转 List
public class Test { public static void main(String[] args) { List<String> stringA = Arrays.asList("hello", "world", "A"); String[] stringArray = {"hello", "world", "B"}; List<String> stringB = Arrays.asList(stringArray); System.out.println(stringA); System.out.println(stringB); } }