Here you can find the source of createList(String s)
Parameter | Description |
---|---|
s | a parameter |
public static List<String> createList(String s)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.List; public class Main { /**//from w w w .j a va 2 s . c om * Creates a new {@link List<?>} of {@link String} and adds <i>s</i> to it * @param s * @return */ public static List<String> createList(String s) { List<String> result = new ArrayList<String>(); result.add(s); return result; } }