write a java program not c++
2. Write a program that produces the following output using nested for loops: [A시 1^ ^1 vV V v Show transcribed image text 2. Write a program that produces the following output using nested for loops: [A시 1^ ^1 vV V vAnswer
Following is the code for this:
import java.util.*;
class Printer
{
public static void main (String[] args) throwsjava.lang.Exception
{
// print the first line
System.out.print(“+”);
for (int i=0;
OR
OR