How to find if any two characters are equal or not?
<p>I have a String as WAAN </p>

<pre><code>public int addString(String s) {
    int total = 0;
    for (int i = 0; i &lt; s.length(); i++) {
        char c = s.charAt(i);
    }
    return total;
}
</code></pre>

<p>How can we find if two characters are equal or not in a String ??</p>
