MCPcopy Index your code
hub / github.com/apache/groovy / main

Method main

benchmark/bench/sumcol.java:9–22  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

7
8public class sumcol {
9 public static void main(String[] args) {
10 int sum = 0;
11 String line;
12 try {
13 BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
14 while ((line = in.readLine()) != null) {
15 sum = sum + Integer.parseInt(line);
16 }
17 } catch (IOException e) {
18 System.err.println(e);
19 return;
20 }
21 System.out.println(Integer.toString(sum));
22 }
23}

Callers

nothing calls this directly

Calls 4

parseIntMethod · 0.80
toStringMethod · 0.65
readLineMethod · 0.45
printlnMethod · 0.45

Tested by

no test coverage detected