What will this code print?
byte[] arr = {5, 2, 4, 1};
byte key = 5;
Arrays.sort(arr);
System.out.println(Arrays.binarySearch(arr, key)); What will this code print?
byte[] arr = {5, 2, 4, 1};
byte key = 5;
Arrays.sort(arr);
System.out.println(Arrays.binarySearch(arr, key)); Create a free account to access the full topic