@@ -0,0 +1,582 @@
+package week11;%0A%0Aimport java.util.Arrays;%0A%0Apublic class ArraysSearchExample %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%0A%09%09int %5B%5D nums = new int %5B%5D %7B54, 2, 6, 99, 390, 290, 3, 1, 0, -59, 392, 60%7D;%0A%09%0A%09%09int numToFind = 1;%0A%09%09%0A%09%09for(int i = 0; i %3C nums.length; i++) %7B%0A%09%09%09int val = nums%5Bi%5D;%0A%09%09%09if(val == numToFind) %7B%0A%09%09%09%09System.out.println(%22we found it at position %22 + i);%0A%09%09%09%7D%0A%09%09%7D%0A%0A%09%09Arrays.sort(nums);%0A%09%09%0A%09%09System.out.println(Arrays.toString(nums));%0A%09%09%0A%09%09int position = Arrays.binarySearch(nums, numToFind);%0A%09%09%0A%09%09System.out.println(%22Binary search found it at: %22 + position);%0A%09%09%0A%09%7D%0A%0A%7D%0A

Create ArraysSearchExample.java