Dremendo Tag Line

Print the given pattern in Java

Java Output - Question 3

In this question, we will print the given pattern in java programming using the java output. To know more about java output click on the java output lesson.

Q3) Write a program in java to print the given pattern using java output on the screen.

************
*STUDENT*
************

Program

public class Q3
{
    public static void main(String args[])
    {
        System.out.println("*********");
        System.out.println("*STUDENT*");
        System.out.println("*********");
    }
}

Output

*********
*STUDENT*
*********
video-poster