Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using Java API for integer search

807580May 11 2010 — edited May 11 2010
I have an integer array and need to check whether a given integer is in the array or not repeatedly. If I need to code by myself, I likely would sort the array first and apply binary search against the sorted array. Since Java already provides some APIs to achieve this goal, I am wondering what is a combining API set for the fastest operation.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 8 2010
Added on May 11 2010
3 comments
106 views