Originally posted by gaurav abbi:
hi,
i'm not able to understand the program
when
String bb = aa.replace(';',',');
this happens, there is no such pattern as ';' in the string bb
so how can we split it based on this
String[] cc = bb.split(";");
and its working fine...
any light on this.
Actually, it doesn't work. What is happening is that you simply changed the delimiter to a comma, which is the separator used by the List toString() method.
So you have one element that happens to have commas, and not nine elements, that is separated by commas.
Henry