MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / multiply

Method multiply

annotations/ifx/Multiplier.java:13–18  ·  view source on GitHub ↗
(int x, int y)

Source from the content-addressed store, hash-verified

11 public boolean flag = false;
12 private int n = 0;
13 public int multiply(int x, int y) {
14 int total = 0;
15 for(int i = 0; i < x; i++)
16 total = add(total, y);
17 return total;
18 }
19 public int fortySeven() { return 47; }
20 private int add(int x, int y) {
21 return x + y;

Callers 1

mainMethod · 0.95

Calls 1

addMethod · 0.95

Tested by

no test coverage detected