String x = "સ્થિતિ";
// WHich is Hex NCR cooded string contains & # x 0 and ; for e.g. « ;
String sFinalData = [email protected]~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);
}
但是,對於上面的代碼,它顯示數組索引超出限制。
我需要將這個十六進制NCR字符串存儲到數據庫。
有什麼建議嗎?
這個編輯器自動將HEX NCR轉換爲字,所以請考慮hexNCR代碼String x。 –