package
test;
import
java.util.StringTokenizer;
public
class
ReplacingStringTokenizeer {
public
static
void
main (String[] args)
{
String sendadd
=
""
;
String input
=
"
dolier@msn.com,doodoosun@126.com
"
;
StringTokenizer stoke
=
new
StringTokenizer(input,
"
,
"
);
while
(stoke.hasMoreElements())
{
sendadd
+=
"
'
"
+
stoke.nextToken()
+
"
',
"
;
}
String send
=
sendadd.substring(
0
,sendadd.length()
-
2
);
System.out.println(send);
}
}
posted on 2006-09-25 10:38
doodoosun 阅读(184)
评论(0) 编辑 收藏