本文介绍了在Java上分割字串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
只是一个简单的问题
如何分割这种字符串?
Hello,
Just a simple question
How can I split this kind of string?
Art C. Cauyao<$@PERX@$>501912568<$@ENDPERX@$>Tessa Rose Brainard<$@PERX@$>510831686<$@ENDPERX@$>Dan Gangan<$@PERX@$>513545777<$@ENDPERX@$>C Jhec Daw Ako<$@PERX@$>523059320<$@ENDPERX@$>Jeremy Watkins<$@PERX@$>526687826<$@ENDPERX@$>Dax Kin Dy Vintola<$@PERX@$>544638475<$@ENDPERX@$>Dominc Odtohan<$@PERX@$>564044999<$@ENDPERX@$>Fruncease Gonzales Binuya<$@PERX@$>564248543<$@ENDPERX@$>Jennifer Castillo Jimenez-Fernando<$@PERX@$>570214516<$@ENDPERX@$>Raymond de Guzman<$@PERX@$>580773568<$@ENDPERX@$>Apa Pasumbal<$@PERX@$>1112268031<$@ENDPERX@$>Tupe DeMolay<$@PERX@$>1113559103<$@ENDPERX@$>Jamilla Magno<$@PERX@$>1119306822<$@ENDPERX@$>Author Marcette Fochier<$@PERX@$>1119993590<$@ENDPERX@$>Jergil Mares Reveldez Toledo<$@PERX@$>1124038000<$@ENDPERX@$>Cesca Gonzales<$@PERX@$>112750780
我正在使用此代码,但不是拆分
Im using this code but It isnt splitting
String delim = "<$@ENDPERX@$>";
String[] StringFirst = xml_getMembermob.toString().split(delim);
for (int a = 0;a<StringFirst.length; a++ )
{
String aws = StringFirst[a];
Log.i("returned sa akin", ""+StringFirst.length);
}
推荐答案
这篇关于在Java上分割字串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!