Here you can find the source of addItemFromCommaStrings(final List
Parameter | Description |
---|---|
languageList | a parameter |
commaStrings | a parameter |
public static void addItemFromCommaStrings(final List<String> list, final String commaStrings)
//package com.java2s; import java.util.List; import java.util.Set; public class Main { /**// ww w . ja va 2 s .c o m * @param languageList * @param commaStrings */ public static void addItemFromCommaStrings(final List<String> list, final String commaStrings) { for (final String str : commaStrings.split(",")) { list.add(str); } } public static void addItemFromCommaStrings(final Set<String> list, final String commaStrings) { for (final String str : commaStrings.split(",")) { list.add(str); } } }