MCPcopy Create free account
hub / github.com/careercup/ctci / main

Method main

java/Chapter 17/Question17_4/Question.java:40–52  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

38 }
39
40 public static void main(String[] args) {
41 int a = 26;
42 int b = -15;
43
44 System.out.println("max_naive(" + a + ", " + b + ") = " + getMaxNaive(a, b));
45 System.out.println("max(" + a + ", " + b + ") = " + getMax(a, b));
46
47 a = -15;
48 b = 2147483647;
49
50 System.out.println("max_naive(" + a + ", " + b + ") = " + getMaxNaive(a, b));
51 System.out.println("max(" + a + ", " + b + ") = " + getMax(a, b));
52 }
53
54}

Callers

nothing calls this directly

Calls 2

getMaxNaiveMethod · 0.95
getMaxMethod · 0.95

Tested by

no test coverage detected