Am Fetching few lines from remote server and saving each line as an arraylist element by setting dot as a separator. Everything works fine. I just don't understand why a strange rn
value gets appended to every new line.
E.g.:
I am going to School. I am feeling hungry
gets split and displayed as
I am going to School
rnI am feeling hungry
What does that rn
stands for?
I am using String.split
to separate. My code is below.
List<String> po= new ArrayList<String>();
separated_q = Arrays.asList(prdesc.split(Pattern.quote(".")));
for(int k=0;k<separated_q.size();k++) {
po.add(separated_q.get(k));
}
Please help me point out where am wrong.