Printing a magic letter

Report a typo

Take a look at the magic letter below that uses a combination of * and whitespaces to showcase a unique pattern. It has 7 characters in each line and a total of 6 lines.

*******
     **
     **
**   **
**   **
 ******

Write a simple program using either print() or println() to print this magic letter.

Write a program in Java 17
class Main {
public static void main(String[] args) {
// put your code here
}
}

Create a free account to access the full topic