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

Method foo

java/Chapter 14/Introduction/Introduction.java:9–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 }
8
9 public static String foo() {
10 int x = 0;
11 int y = 5;
12 try
13 {
14 System.out.println("start try");
15 int b = y / x;
16 System.out.println("end try");
17 return "returned from try";
18 } catch (Exception ex) {
19 System.out.println("catch");
20 return lem() + " | returned from catch";
21 } finally {
22 System.out.println("finally");
23 }
24 }
25
26 public static void bar() {
27 System.out.println("start bar");

Callers 1

barMethod · 0.95

Calls 1

lemMethod · 0.95

Tested by

no test coverage detected