一. substirng
publicstaticvoidmain (字符串现代板栗args ) )。
stringsendcontent=' : www.Baidu.com ';
//查询字符串中最后一个冒号的位置
intindex=send content.lastindexof (' : );
//剪切
string Qian=send content.substring (0,index );
stringhoub=send content.substring (index );
//拼接
stringall=Qian.concat(http ) ).concat ) houb;
}
二.分裂
String str='abc,12,3 yy98,0 ';
String现代板栗strs=str.split (,);
for(intI=0,len=strs.length; I
}