Home | History | Annotate | Download | only in util

Lines Matching defs:list

28  * <code>java.util.List</code> objects.
35 * Creates a comma-separated String from the given List of String objects.
37 public static String commaSeparatedString(List list, boolean quoteStrings)
39 if (list == null)
46 for (int index = 0; index < list.size(); index++)
53 String string = (String)list.get(index);
68 * Creates a List of String objects from the given comma-separated String.
70 public static List commaSeparatedList(String string)
77 List list = new ArrayList();
93 list.add(string.substring(index + 1, nextIndex));
107 list.add(substring);
114 return list;
157 List list = commaSeparatedList(args[0]);
159 System.out.println("Resulting list:");
160 for (int index = 0; index < list.size(); index++)
162 System.out.println("["+list.get(index)+"]");
167 List list = Arrays.asList(args);
169 System.out.println("Input list:");
170 for (int index = 0; index < list.size(); index++)
172 System.out.println("["+list.get(index)+"]");
175 String string = commaSeparatedString(list, true);