I want to know how to do binary search on character array in java
There is a in-build function in java , but i don't want to use that , any help or pointers will be really appreciated.
I just started with below as i know binary search needs the array to be sorted
char[] whitelist = {'f','e','d','c','b','a'};
Arrays.sort(whitelist);
for (char ch : whitelist) {
System.out.println("The values after sorting\n"+ch);
}