Finding index of array
<p>Could someone explain to me why is the result is 6? Thanks</p>

<pre><code>String[] s = { "A", "B", "C", "D" };
String b = "ABRACADABRA";
int i = s.length - 1;
System.out.print( b.indexOf( s[ i ] ) );
</code></pre>

<p>I understand s length is 4, so i = 3, but then what does s[i] mean?</p>
