MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / main

Method main

Programs/ExponentialSearch.java:21–32  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 1

exponentialSearchMethod · 0.95

Tested by

no test coverage detected