3
Im正在使用String Tokenizer API。我没有使用Split(),因为我的工作与JDK 1.3。如何使用String Tokenizer获取所需的字符串
我有如下
String input="Open_filedesc_count:mix:-1:-1:longterm:HML Max_filedesc_count:mix:-1:-1:longterm:HML,Percent_usage:mix:-1:95/90/85:standard:HML, Availability:mix:1/-/-:-1";
给予我现在想来标记字符串输入字符串输出应该像
Open_filedesc_count Percent_usage Availability
它只是消除了大部分的字符串。但我想要如上所述的输出。
我试了类型构造的,但不可能得到的输出所提到的格式
感谢很多:)正确的答案! :D :)解释一切,这对我们所有人都有帮助! –
它返回恰好三个字符串http://ideone.com/ubT3o7 – mishadoff