Skip to content

Latest commit

 

History

History
92 lines (71 loc) · 883 Bytes

README.md

File metadata and controls

92 lines (71 loc) · 883 Bytes

Hollowgram

Different patterns than can be created using Java and Nested For Loops and While Loops

Design Pattern HallowDiamond.java

Enter any height: 5
    *    
   * *   
  *   *  
 *     * 
*       *
 *     * 
  *   *  
   * *   
    *    

Design Pattern HalfHollowDiamond.java

Enter any height: 5
     *
    * *
   *   *
  *     *
 *       *
*         *

Design Pattern one PatternOne.java

Enter any height: 5
*****
*   *
*   *
*   *
*****

Design Pattern PatternTwo.java

Enter any height: 5
****
 ***
  **
   *

Design Pattern PatternThree.java

Enter any height: 5
   *
  **
 ***
****

Design Pattern PatternFour.java

Enter any height: 5
   *
  ***
 *****
*******

Design Pattern PatternFive.java

Enter any height: 5
    *
   ***
  *****
 *******
*********
 *******
  *****
   ***
    *