title: java Arrays.binarySearch fails to find target
body: <pre><code>String[] sortedArray = new String[]{"Quality", "Name", "Testing", "Package"};   
  
  // Search for the word "cat" 
  int index = Arrays.binarySearch(sortedArray, "Quality");  
  </code></pre>
  
  <p>I always get <code>-3</code>. Problem is in <code>"Name"</code>. Why I can not have <code>"Name"</code> in my array? Any idea?</p>