N
Navneet Mathpal
why equal is not comparing it although data is same ???
for (int i=0;i<blen;i++)
{
System.out.println("Best :"+best);
String bb=best;
for(int j=0;j<flen;j++)
{
String ff=found[j];
System.out.println("Found "+found[j]);
if(bb.equalsIgnoreCase(ff))
{
count=count+1;
System.out.println("hello");
resfound.add(found[j]);
}
}
OUTPUT IS :
Best :17601089
Found 18769218
Found 17601089
Found 7240354
Found 18668662
Found 530777
Found 12538756
Found 15441407
Found 11669171
Found 12062082
Found 12626411
Best : 18668662
Found 18769218
Found 17601089
Found 7240354
Found 18668662
Found 530777
Found 12538756
Found 15441407
Found 11669171
Found 12062082
Found 12626411
Best : 9967149
Found 18769218
Found 17601089
Found 7240354
Found 18668662
Found 530777
Found 12538756
Found 15441407
Found 11669171
Found 12062082
Found 12626411
for (int i=0;i<blen;i++)
{
System.out.println("Best :"+best);
String bb=best;
for(int j=0;j<flen;j++)
{
String ff=found[j];
System.out.println("Found "+found[j]);
if(bb.equalsIgnoreCase(ff))
{
count=count+1;
System.out.println("hello");
resfound.add(found[j]);
}
}
OUTPUT IS :
Best :17601089
Found 18769218
Found 17601089
Found 7240354
Found 18668662
Found 530777
Found 12538756
Found 15441407
Found 11669171
Found 12062082
Found 12626411
Best : 18668662
Found 18769218
Found 17601089
Found 7240354
Found 18668662
Found 530777
Found 12538756
Found 15441407
Found 11669171
Found 12062082
Found 12626411
Best : 9967149
Found 18769218
Found 17601089
Found 7240354
Found 18668662
Found 530777
Found 12538756
Found 15441407
Found 11669171
Found 12062082
Found 12626411