守候你守候我
让我总结一下并添加一些内容:JDK1. new ArrayList<String>();2. Arrays.asList("A", "B", "C")番石榴1. Lists.newArrayList("Mike", "John", "Lesly");2. Lists.asList("A","B", new String [] {"C", "D"});不可变列表1. Collections.unmodifiableList(new ArrayList<String>(Arrays.asList("A","B")));2. ImmutableList.builder() // Guava .add("A") .add("B").build();3. ImmutableList.of("A", "B"); // Guava4. ImmutableList.copyOf(Lists.newArrayList("A", "B", "C")); // Guava空的不可变列表1. Collections.emptyList();2. Collections.EMPTY_LIST;字符列表1. Lists.charactersOf("String") // Guava2. Lists.newArrayList(Splitter.fixedLength(1).split("String")) // Guava整数列表Ints.asList(1,2,3); // Guava