How to compare character ignoring case in primitive types
<p>I am writing these lines of code:</p>

<pre><code>String name1 = fname.getText().toString();
String name2 = sname.getText().toString();
aru = 0;

count1 = name1.length();
count2 = name2.length();
for (i = 0; i &lt; count1; i++)
{  
    for (j = 0; j &lt; count2; j++)
    { 
        if (name1.charAt(i)==name2.charAt(j))
            aru++;
    }
    if(aru!=0)
        aru++;
}
</code></pre>

<p>I want to compare the chars of two string ignoring the case. Simple <code>IgnoreCase</code> won't work then how do i do that? Adding <code>65</code> is also not working. help!</p>
