This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes How to use binarySeach in Array? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to use binarySeach in Array?" Watch "How to use binarySeach in Array?" New topic
Author

How to use binarySeach in Array?

azuki ooh
Greenhorn

Joined: Nov 07, 2008
Posts: 20
I have a method that goes like this. I'm suppose to make use of binarySearch method in array. Is this not how binarySeach method work?

>
azuki ooh
Greenhorn

Joined: Nov 07, 2008
Posts: 20
Resolved. Since binarySearch is a static method in Arrays, I need a Arrays.binarySearch(alpahaArray, 'a');
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37874
    
  22
I can see no sign of binary searching, or any other type of searching, in that post.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use binarySeach in Array?
 
Similar Threads
Exception while uploading a zip file on Linux OS
[Easy] Shift String
Array Index Out Of Bounds
Disappointed with JFormattedTextField
Problem with using generics