Consider the following method | Computer Science homework help

  

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?