Java tutorial
//package com.java2s; /* * z2env.org - (c) ZFabrik Software KG * * Licensed under Apache 2. * * www.z2-environment.net */ import java.util.Set; import java.util.StringTokenizer; public class Main { public static void addDepsFromCSL(Set<String> deps, String dep) { if (dep != null) { StringTokenizer tk = new StringTokenizer(dep, ","); while (tk.hasMoreTokens()) { String d = tk.nextToken().trim(); if (d.length() > 0) { deps.add(d); } } } } }