Hi friend,
I Solved it :) Please mark it as solved and rate it too if you wish :)
Here's the code :
String body = "example....string...here..";
for (int loop = 0; loop < body.length() - 1; loop++)
{
char cek1 = body.substring(loop, loop+1).charAt(0);
char cek2 = body.substring(loop+1, loop+2).charAt(0);
if (cek1 == '.' && cek2 == '.')
{
body = body.substring(0, loop) + body.substring(loop+2, body.length());
loop = loop-1;
}
}
What I did was converted the single charater String type to a character type and then compare it :)
With Regards
Tushar Srivastava