Getsubsequence with ascii value

String s=recresult.get(i);
char a=str.charAt(0);
int b=(int)a;
myresult.add(Integer.toString(b));

to get ascii value with subsequence i am writing above code,the code is running successfully but is giving some values again an again in the output.
for example its giving "a98 " two times in the output.

please share your entire code for easy debugging