Solved

Parameter Mystery At the Bottom of the Page, Write the Output Produced

Question 1

Essay

Parameter Mystery
At the bottom of the page, write the output produced by the following program.
public class ParameterMystery {
public static void main(String[] args) {
String a = "felt";
String b = "saw";
String c = "drew";
String saw = "sue";
String drew = "b";
mystery(a, b, c);
mystery(b, a, saw);
mystery(drew, c, saw);
mystery("a", saw, drew);
mystery(a, a, "drew");
}
public static void mystery(String b, String a, String c) {
System.out.println(c + " " + a + " the " + b);
}
}

Correct Answer:

verifed

Verified

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents