To search for elements in your sorted array, you can use the binary search algorithm. Of course, you can get it for free in the Java language!
Therefore, the point of this Java Challenge is to learn how to use the binarySearch method. Can you solve this code puzzle then?
To watch the full video explanation, check it out (I highly recommend trying out the Java Challenge first though):
Keep breaking your limits challenger!