Interactive:

Task 2 of 10 · 0 solved · 10 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

Trace this recursive method by hand and type exactly what it prints:

public class Main {
    static void count(int n) {
        if (n == 0) { System.out.println("Go!"); return; }
        System.out.println(n);
        count(n - 1);
    }
    public static void main(String[] args) {
        count(3);
    }
}
Next task →