MCPcopy Create free account
hub / github.com/ShivaBhattacharjee/KeyZen / main

Method main

data/java/05_generics.java:12–20  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

10 }
11
12 public static void main(String[] args) {
13 Box<Integer> scoreBox = new Box<>();
14 scoreBox.set(88);
15
16 Box<String> labelBox = new Box<>();
17 labelBox.set("Top score");
18
19 System.out.println(labelBox.get() + ": " + scoreBox.get());
20 }
21}

Callers

nothing calls this directly

Calls 2

setMethod · 0.95
getMethod · 0.95

Tested by

no test coverage detected