CODE DRILL 2 · RUN ONLY
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Write the Java program so it prints the values in the array [4, 2, 7, 1] in reverse visit order, producing 1 7 2 4. Traverse from index n - 1 down to index 0 without modifying the array.
OUTPUT
Sample1 7 2 4
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.