title: How do I create a loop to print the following pattern?
body: <p>I have to create the following pattern by using loop.</p>
  
  <pre><code>* * * * *
   * * * *
  * * * * *
   * * * *
  </code></pre>
  
  <p>Now I can only do that by simply <code>system.out.print</code> statement. I don't know how to construct that with a for loop.</p>
  
  <p>My code:</p>
  
  <pre><code>    package pattern;
  
  public class Pattern {
  
      public static void main(String[] args) {
  
          System.out.println("* * * * *");
          System.out.println(" * * * *");
          System.out.println("* * * * *");
          System.out.println(" * * * *");
      }
  
  }
  </code></pre>