I am storing the result of list<Object[]>
into a set as shown below..
String s ;
for (Object[] arr : ilist) {
String t = arr[2].toString();
Set<String> st = new HashSet<String>();
s=((String) arr[0]+ (String) arr[1]+t + (String) arr[3]);
}
now the problem is that upon debugging i found that in arr[2]
the value is "TRE RTYU" that is a string but as we can see that there are space in between please advise how can i remove the space in between so that the value in arr[2] = "TRERTYU"