I am trying to use simple split() method but the output I am getting is not Correct .I am using this code:
question = newobject.ACTIVITY_LIST_OF_QUESTIONS.split("|");
where the newobject.ACTIVITY_LIST_OF_QUESTIONS contains 1|2|8|11|4|5|6|14|15|16|13|17|7|9|12|10 as a String so I must be getting each number in array index.
But instead of that I am getting output-
1
|
2
|
8
Please help If someone had the same problem?