title: Making a hollow diamond with a word in it
body: <p>What I need is a little modification to my code so that every part of my hollow diamond prints a letter of the word &quot;HURRICANE&quot;</p>
  <p>My code is:</p>
  <pre class="lang-java prettyprint-override"><code>String st1 = &quot;HURRICANE&quot;;
  int a = 0;
  for (int i = 5; i &gt;= 1; i--) {
      for (int j = 1; j &lt;= 9; j++) {
          if (j == i || (10 - i) == j) {
              System.out.print(st1.charAt(a)); //needs change
          } else {
              System.out.print(' ');
          }
      }
      System.out.println();
  }
  for (int i = 2; i &lt;= 5; i++) {
      for (int j = 1; j &lt;= 9; j++) {
          if (j == i || (10 - i) == j) {
              System.out.print(st1.charAt(a)); //needs change
          } else {
              System.out.print(' ');
          }
      }
      System.out.println();
  }
  </code></pre>
  <p>The output comes out as:</p>
  <pre><code>    H    
     H H   
    H   H  
   H     H 
  H       H
   H     H 
    H   H  
     H H   
      H    
  </code></pre>
  <p>I need to modify my &quot;charAt&quot; statement a little so it comes out to be:</p>
  <pre><code>    H    
     U U   
    R   R  
   R     R 
  I       I
   C     C 
    A   A  
     N N   
      E
  </code></pre>
  <p>How should I make my print statement?</p>