title: Printing an array
body: <p>I have an array of 28 characters. I'm trying to use a for loop to print the string and its length so that the next line removes the last character from the previous line. For example:</p>
  
  <pre><code>7 Example
  6 Exampl
  5 Examp
  4 Exam
  3 Exa
  2 Ex
  1 E
  </code></pre>
  
  <p>I have this so far, but it's not printing. What am I doing wrong?</p>
  
  <pre><code>for(int index=28; index &lt;= nameArray.length; index--)
              {
                  System.out.print(nameArray[index]);
              }
  </code></pre>