MCPcopy Create free account
hub / github.com/Berkeley-CS61B/skeleton-sp23 / product

Method product

lab01/src/Arithmetic.java:13–15  ·  view source on GitHub ↗

Computes product of two ints. @param a Value 1 @param b Value 2 @return Product of a and b

(int a, int b)

Source from the content-addressed store, hash-verified

11 * @return Product of a and b
12 * */
13 public static int product(int a, int b) {
14 return a * b;
15 }
16
17 /** Computes sum of two ints (incorrectly).
18 * @param a Value 1

Callers 2

mainMethod · 0.95
testProductMethod · 0.95

Calls

no outgoing calls

Tested by 1

testProductMethod · 0.76