import java.util.ArrayList;
class StringUtils {
public static ArrayList spliteByToken(String src, String token) {
String[] array = src.split(token);
ArrayList ret = new ArrayList();
for (String temp : array) {
if (temp != "") {
ret.add(temp);
}
}
return ret;
}
public static String combineByToken(ArrayList list, String token) {
StringBuffer buf = new StringBuffer();
for (String temp : list) {
buf.append(token).append(temp);
}
if (buf.length() != 0) {
buf.deleteCharAt(0);// will refactory soon here
}
return buf.toString();
}
}