Given a properly prepared
String array containing 5 elements, which range of results could be proper invocation of Arrays.binarySearch() produce ?
A. 0 through 4
B. 0 through 5
C. -1 through 4
D. -1 through 5
E. -5 through 4
F. -5 through 5
G. -6 through 4
H. -6 through 5
I responded E (-5 through 4), but in the book the correct response is G(-6 through 4). Could someone explain me why G and not E ?
Regards