Recursively printing data in java full source code with output screenshot of running program

Write a recursive method that produces an output similar to the following:

This was written by call number 1.
This was written by call number 2.
This was written by call number 3.
This was written by call number 4
This was ALSO written by call number 4.
This was ALSO written by call number 3
This was ALSO written by call number 2.
This was ALSO written by call number 1.
Powered by