Here you can find the source of printMap1(String[] s)
Parameter | Description |
---|---|
classid | 2-5 |
public static List printMap1(String[] s)
//package com.java2s; import java.util.Arrays; import java.util.LinkedList; import java.util.List; public class Main { public static List printMap1(String[] s) { List<String> list = new LinkedList<String>(); List<String> list2 = Arrays.asList(s); list.addAll(list2);//from w w w . j av a 2 s .co m return list; } }