Negative key in binary search method in Java
<p>What does it mean when the second argument is negative. I'm looking at a piece of code that searches for a key in an array. But what does a negative key mean ?</p>

<pre><code> for (int i = 0; i &lt; N; i++) {
                int j = Arrays.binarySearch(a, -a[i]);
}
</code></pre>
