show the Trace and Output of the following program.
code
3
10
11
12
13
14
15
16
17
18
19
20
21
public class E2012(
public static void main(String[] args) (
Systen. out.printin(prn(2));
public static void prn(char n) {
System. out.printin(n);
public static int prn (int n){
for (int i = 0; i < n; i++){
prnlt (1) :
System. out. printIn();
return n
・★5:
public static void prIt (int n){
if (n == 1)
System. out.print (n) ;
else
System. out. print (n + "-");