Consider the following method: 

public static int secret(int value) {

int prod = 1;

for(int i =1; i <= 3; i++) {

prod = prod * value;

}

return prod;

}

1.What is the output produced by the following Java statements: 

2.What does the method secret do?

    • 4 years ago
    Answer Attached
    NOT RATED

    Purchase the answer to view it

    • ParameterS47.doc