Quite a simple question. I have a Java5 project where I need the Arrays.binarySearch(long[] a, int fromIndex, int toIndex, long key) method that is only available from Java6. Is there some library that provides this method. I checked the ArrayUtils class from Apache Commons, but there is not. I am not up for writing the search on my own 🙂
Quite a simple question. I have a Java5 project where I need the Arrays.binarySearch(long[]
Share
Your best bet is to simply take the source code for that class and bring it into your project.