📅  最后修改于: 2022-03-11 14:52:07.739000             🧑  作者: Mango
public List getTokens(String str) {
List tokens = new ArrayList<>();
StringTokenizer tokenizer = new StringTokenizer(str, ",");
while (tokenizer.hasMoreElements()) {
tokens.add(tokenizer.nextToken());
}
return tokens;
}