Hi All,

Within my onCreate method in an activity.....
I have a 2 dimensional string array..... a list of countries with
relevant info such as latitude etc....

ie
...
"CA","CANADA","KANGIRSUK","60.01667","70.00000"
"CA","CANADA","KEGASKA","50.18333","61.28333"
"CA","CANADA","KUUJJUAQ (FORT CHIMO)","58.10000","68.43333"
...

but when I try and do some string comparison... I just can't seem to
get the correct result...

for example....


for ( int i = 0; i < worldDB.length; i++ )
{
        String country = worldDB[i][0];
        if (country.equalsIgnoreCase("CA"))
        {
                  Log.v(.....);
....


I have tried several combinations, and I know that the initials "CA"
exist in my array... but even after traversing the entire array I
still get 'false' as an answer..... what am I doing wrong ??

Any pointers will be appreciated

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to