Question 0-4

Say we've defined the following method.

public static int f(int x) {
    IO.print(x);
    return x * 2;
}
If our program executes the line IO.println(f(f(1)));, what does the program print?

Solution

124

Back to Review for Quiz 0