Sun Nov 16, 2008 12:29 pm
Sun Nov 16, 2008 3:56 pm
int count=0;
String mm="asgsdgsissdfsadfsisissdfdsfsdf is";
int lastindex=0;
int temp=-1;
for(int i=0;i<mm.length();i++)
{
temp=mm.indexOf("is",lastindex);
if(temp!=-1)
{
lastindex=temp+2;
count++;
}
}
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.