(String args[])
| 19 | } |
| 20 | |
| 21 | public static void main(String args[]) |
| 22 | { |
| 23 | int arr[] = {2, 3, 4, 10, 40}; |
| 24 | int x = 10; |
| 25 | int result = exponentialSearch(arr, |
| 26 | arr.length, x); |
| 27 | |
| 28 | System.out.println((result < 0) ? |
| 29 | "Element is not present in array" : |
| 30 | "Element is present at index " + |
| 31 | result); |
| 32 | } |
| 33 | } |
nothing calls this directly
no test coverage detected