I have a String value in a variable for eg ID
XML Like
<DocumentElement><Contact ID="1" Name="Test1" 1/><Contact ID="2" Name="TEST" /></DocumentElement>
i get my id in _s2
i want to add all id in a String Array like EmailArr
i have Done
Count=0;
EmailArr=new String[Count];
String _s2=event.getAttribute("ID").getValue();
if(_s2=="" || _s2==null){
_s2="N/A";
}
if(_s2!=null){
EmailArr[Count]=_s2;
Count=Count++;
}
I get Exception java.lang.ArrayIndexOutOfBoundsException