can then be added, but this doesn't have to behave like an "undo" operation that would put back duplicates that you previously removed. You are required to use the built-in Anays.binarySearch method discussed in section forall of your location testing (Where is a value? Where would I insert a new value?). Youcan find the documentation for it in the JavaAPI documentation that is the first link under"useful links" on the class web page. Keep in mind that because this is a static method,you have to use the class name in calling it. For example, to find the location of the value 42 in an array called data when we want to explore the first twelve elements, you'd saysomething like:int index : Arrays.binarySearch(data, 0, 12, 421; Remember that the "from index"
This is the end of the preview.
access the rest of the document.