I am facing a weird java string comparison issue.
{
String a,b;
a = "http://www.abc.com/audiofiles/1349866054121.caf";
b = "http://www.abc.com/audiofiles/";
boolean flag = a.contains(b); // This should be true...
}
But unfortunatly it returns false. I have tried toLowerCase(), and trim() but no help..
Anyone knows the issue
Do a
toCharArray()on both strings and look at the characters one by one. That will answer your question. Output them as ints to make it easier to tell where they differ.