search an item in a array
<p>i have the String str="abc"; and i want to search if there is the letter "b" in it.I convert it to char[] and i create a for loop.this is my code [code]   </p>

<pre><code>      String str="abc";
      char c[] = str.toCharArray();

      for(int k=1;k&lt;c.length;k++){
          if(c[k]=='b')
                {  
                System.out.println("yes");
                }
          else {
            System.out.println("no");}
                }
</code></pre>

<p>why does it print 'no'??</p>
