Binary Search in 5 min simple java program

preview_player
Показать описание
Simple and easy binary search in java.
Рекомендации по теме
Комментарии
Автор

A good video JK leo, but this code works only for sorted array, you can make it complete by adding a sort method too:-)

veenawale
Автор

how would you search an array that is made up up random names? i know "public static int is only for int values and not strings.

TheMrSidekick
Автор

i typed in:

1
2
3
4
233

and search for the 5th number --> 233

The result was....233 ....wtf?!?!?!

Selfkill