MCPcopy Create free account
hub / github.com/Manvityagi/PW-Skills-Java-Course-Codes / main

Method main

Lecture 45 - Binary Search/src/Main.java:59–70  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

57 }
58
59 public static void main(String[] args) {
60 int[] a = {1, 2, 3, 4, 5};
61 int val = 16;
62 while(val != 30){
63 System.out.printf("sqrt of %d is %d\n", val, findSquareRoot(val));
64 int fo = firstOcc(a, val);
65// System.out.printf("First occurrence of %d is %d\n", val, fo);
66// System.out.println(binarySearch(a, val));
67// System.out.println(recBinarySearch(a, 0, a.length-1, val));
68 val++;
69 }
70 }
71}

Callers

nothing calls this directly

Calls 2

findSquareRootMethod · 0.95
firstOccMethod · 0.95

Tested by

no test coverage detected