Procedural Decomposition with Static Methods

"Controlling Complexity is the essence of computer programming."
             -- Brian Kernighan


Problem: Write a Java program that prints the following output:


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



Different Solutions



We want solutions that are:







A Similar Program


Now take the program you wrote, and modify it to print the following:

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

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

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

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