Why does it always return 49999 no matter what strToSearch variable holds? Even with the clank search variable it returns the same. Have I missed s
49999
strToSearch
You assume that String strToSearch is of type "12,12". To make this code work just change strToSearch
String strToSearch
For example:
Arrays.binarySearch(arr, "12,12", new Comparator)