当前位置: 技术问答>java相关
字符串分割怎么会有问题?在线等待
来源: 互联网 发布时间:2015-08-08
本文导语: 我的程序是这样的: String strLine = "01050000,20020506,181,6448,1,0,0,,3780,3780,0,0,0,0,0,0,0,6220,3600,0,0,0,0,0,0,0,0,0,0,0,0,0,0,180,3600,0,0000000013,1,2,0,0,0,2, ,0,5100,0,4,0406,,1147 ,0,1147 ,1147 , ...
我的程序是这样的:
String strLine = "01050000,20020506,181,6448,1,0,0,,3780,3780,0,0,0,0,0,0,0,6220,3600,0,0,0,0,0,0,0,0,0,0,0,0,0,0,180,3600,0,0000000013,1,2,0,0,0,2, ,0,5100,0,4,0406,,1147 ,0,1147 ,1147 , ,0, ,0,,20020506114752,会食 ,";
StringTokenizer strTokenizer = new StringTokenizer(strLine,",");
String strTmp;
for (int i = 0; i