Java display ASCII pattern

Question

We would like to write a program that displays the following pattern:


Large letter like this:

    J     A   V     V   A
    J    A A   V   V   A A
J   J   AAAAA   V V   AAAAA
 J J   A     A   V   A     A

Code structure

public class Main {
  public static void main(String[] args) {
    //your code here
  }
}




public class Main {
  public static void main(String[] args) {
    System.out.println("    J     A   V     V   A");
    System.out.println("    J    A A   V   V   A A");
    System.out.println("J   J   AAAAA   V V   AAAAA");
    System.out.println(" J J   A     A   V   A     A");
  }
}



PreviousNext

Related