Array.binarysearch in java
<p>Given:</p>

<pre><code>import java.util.*;
public class Quest 
{ 
  public static void main(String[] args) { 
  String[] colors = {"blue", "red", "green", "yellow", "orange"}; 
  Arrays.sort(colors); 
   int s2 = Arrays.binarySearch(colors, "orange"); 
   int s3 = Arrays.binarySearch(colors, "violet"); 
    System.out.println(s2 + " " + s3);
}
}
</code></pre>

<p>The output is <code>2 -5</code>. Why?</p>
