Simple Java Program To Display Shapes With Asterisks

(Displaying Shapes with Asterisks) Write an application that displays a box, an oval, an arrow and a diamond using asterisks (*), as follows:

Displaying Shapes with Asterisks in Java

/**
 *
 * @author Bilal Tahir Khan Meo
 * Website:https://codeblah.com
 */
 
public class Shapes {
    public static void main (String [] args) {
        System.out.println ("This Application Displays A Box, An Oval, An Arrow"
                + " And A Diamond Using Asterisks (*)");
         
        System.out.print ("*********      ***        *          * \n");
        System.out.print ("*       *    *     *     ***        * * \n");
        System.out.print ("*       *   *       *   *****      *   * \n");
        System.out.print ("*       *   *       *     *       *     * \n");
        System.out.print ("*       *   *       *     *      *       * \n");
        System.out.print ("*       *   *       *     *       *     * \n");
        System.out.print ("*       *   *       *     *        *   * \n");
        System.out.print ("*       *    *     *      *         * * \n");
        System.out.print ("*********      ***        *          * \n");
    }
}

Simple Java Program To Display Shapes With Asterisks

/*
 *       Filename:  DisplayShapes.java
 *
 *    Description:  Exercise 2.18 - Displaying Shapes With Asterisks

 *        @Author:  Bilal Tahir Khan Meo - https://codeblah.com
 *
 * =====================================================================================
 */
public class DisplayShapes{
    public static void main(String[] args){
        System.out.println("*********    ***      *        *");
        System.out.println("*       *   *   *    ***      * *");
        System.out.println("*       *  *     *  *****    *   *");
        System.out.println("*       *  *     *    *     *     *");
        System.out.println("*       *  *     *    *    *       *");
        System.out.println("*       *  *     *    *     *     *");
        System.out.println("*       *  *     *    *      *   *");
        System.out.println("*       *   *   *     *       * *");
        System.out.println("*********    ***      *        *");
    }
}