title: How to compare characters in two CharSequences
body: <p>How should I compare two characters of two <code>CharSequence</code>s?</p>
  
  <p>These are my two <code>CharSequence</code>s:</p>
  
  <pre><code>CharSequence name1 = fname.getText();
  CharSequence name2 = sname.getText();
  </code></pre>
  
  <p>If I try to compare like this: </p>
  
  <pre><code>if(name1[i] == name2[j])
  </code></pre>
  
  <p>..it gives me errors.</p>