stringtokenizerstringtokenizer
There is an issue with StringTokenize ...
Split have to use regex, StringTokenizer is using String or CharSequence,
but
"a.b..".split(".") will return {"a","b",""}
and StringTokenizer of "a.b.." ... will return only {"a","b"}
And this is very tricky!!! Be Carefull!!!
Better and safer alternatives to StringTokenizer are:
Much better StrongTokenizer is in org.apache.common.lang3 ... it have much more flexibility or
com.google.common.base.Splitter
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-28494-1.html
深寒魅影的意思是围攻定镇二舰的日本舰队发射的大量炮弹均未能击穿定远镇远的主装甲
父母的美德是一笔巨大的财富