class="java" name="code"> package Jan2017; import java.util.Arrays; import java.util.List; public class Ques0120 { public static void main(String[] arg){ List<String> list = Arrays.asList("张三","李四"); list.add("王五"); System.out.println("列表的元素数量是:"+list.size()); } }