Redian新闻
>
how to set up multiple delimiter?
avatar
how to set up multiple delimiter?# Java - 爪哇娇娃
G*a
1
for StringTokenizor, i want to set up more than one delimiter in order to use
the this construcotor:
StringTokenizor st = new StringTokenizor (text, delimiter);
How should i include more than one element into this String delimiter?
String delimiter = ", ??? ."
Thanks.
avatar
x*n
2
dont understand ur question.
if u want the string of ", ??? ." as the delimiter, since it's a string,
i don't see a problem;
if u want multiple delimiters, say ",", "???", ".", at least u can
replace the occurrences of any other delimiters into one same delimiter.

【在 G*********a 的大作中提到】
: for StringTokenizor, i want to set up more than one delimiter in order to use
: the this construcotor:
: StringTokenizor st = new StringTokenizor (text, delimiter);
: How should i include more than one element into this String delimiter?
: String delimiter = ", ??? ."
: Thanks.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。