title: Add extra number beside array
body: <p>i want setting an array and below is my code</p>
  
  <pre><code>    public static void setArray()
  {
      int i = 5;
      int j = 5;
      int testarray[][] = new  int[i][j];
  
      for(int x = 0;x&lt;i;x++)
      {
          for(int y=0;y&lt;j;y++)
          {
              System.out.print("0 ");
          }
          System.out.println("");     
      } 
  }
  </code></pre>
  
  <p>the result is something like this: 
  0 0 0 0 0 </p>
  
  <p>0 0 0 0 0 </p>
  
  <p>0 0 0 0 0 </p>
  
  <p>0 0 0 0 0 </p>
  
  <p>0 0 0 0 0</p>
  
  <p>if i want to put a number/alphabet beside to let the user know which column, how can i do that ? </p>
  
  <p>Expected Result:</p>
  
  <p>====================</p>
  
  <p>1 2 3 4 5</p>
  
  <p>A|0 0 0 0 0 </p>
  
  <p>B|0 0 0 0 0 </p>
  
  <p>C|0 0 0 0 0 </p>
  
  <p>D|0 0 0 0 0 </p>
  
  <p>E|0 0 0 0 0</p>