I have code like this, the value of jArrAnswer is
jArrAnswer
[{\"answer\":\"Yes\"},{\"answer\":\"No\"},{\"answer\":\"maybe\"},{\"answer\":\"yrg\"}]
You are iterating the for loop over jArrAnswer while your fetching the index i over jArrAnswerid.
for loop
i
jArrAnswerid
Check and make sure that the jArrAnswerid.size() is equal to the jArrAnswer.size().
jArrAnswerid.size()
jArrAnswer.size()
Print the jArrAnswerid.size() and check.