My loop using charAt isn't working
<p>I am in need of help for this loop. Basically what I am trying to do is run a loop. When the array String champs contains a character 'B' as it first letter it would display both the time and champ.</p>

<p>Could someone tell me what I've done wrong or why it isn't showing up? The output I receive from this is just "Time    Champs"</p>

<pre><code>public static void displayTeam(short[] time, String[] champs){
    System.out.println("time     Champs");
    for(int a= 0; a &lt; time.length; a++){
        char fletter=champs[a].charAt(0);
        if("B".equals(fletter)){
            System.out.println(time[a] + "     " + champs[a]);
        }
    }
}
</code></pre>

<p>Thanks to everyone who helps and contributes.</p>
