如何存储包含的字符串;在java中使用字符串[]

如何存储包含的字符串;在java中使用字符串[],java,Java,我输入了字符串 String x = "સ્થિતિ"; // WHich is Hex NCR cooded string contains & # x 0 and ; for e.g. &#x0AB ; String sFinalData = 87508~~~~20~false@87512~x~~~22~true 我正在使用以下代码 St

我输入了字符串

String x = "સ્થિતિ";  
// WHich is Hex NCR cooded string contains & # x 0 and ; for e.g. &#x0AB ;

String sFinalData = 87508~~~~20~false@87512~x~~~22~true
我正在使用以下代码

String[] sPropertyString = sFinalData.split("@");
for(int iter=0;iter<sPropertyString.length;iter++){
   String[] sProperty = sPropertyString[iter].split("~");
   sPropertyName = sProperty[1];
   System.out.println("O/P..."+sPropertyName );
}
String[]sprPropertyString=sFinalData.split(“@”);

对于(int iter=0;iter
sprPropertyName=sprProperty[1]“/index”是数组索引越界异常来自这一行吗?为什么使用索引1,也许<代码> Stury.Lime是最大索引为0。< /P>编辑器自动将十六进制NCR转换为Word,因此请考虑HeXNCR代码字符串X。因为我想从一号行存储从StUntryString获得的HxNCR代码。row ArrayIndexOutOfBoundException?SpPropertyName=SpProperty[1];将数组索引抛出边界我已经说过可能是SpProperty.lengthis 1。那么最大索引为0。