Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

**JAVA**Write a method that produces the output shown below. This output was wri

ID: 3776713 • Letter: #

Question

**JAVA**Write a method that produces the output shown below. This output was written by call number 1. In the example, the recursion stopped when it reached four levels deep, but your method should be capable of counting to any specified level.

This was written by call number 2.

   This was written by call number 3.

     This was written by call number 4.

This ALSO written by call number 4.

     This ALSO written by call number 3.

This ALSO written by call number 2.

This ALSO written by call number 1.

.

Explanation / Answer

public String display1(){

System.out.println(This was written by call number 2);

display2(){

System.out.println(This was written by call number 3);

display3(){

System.out.println(This was written by call number 4);

}

return display1();

}