Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 5
    Array.BinarySearch and Array.FindIndex are .NET methods and don't exist in Java. Commented Jun 27, 2013 at 20:03
  • @ataylor there's Arrays.binarySearch in java. But you're right, no Arrays.findIndex Commented Aug 28, 2013 at 7:27
  • 1
    It should be noted: The array must be sorted prior to making this call. If it is not sorted, the results are undefined. Commented Dec 19, 2019 at 21:17