title: JAVA 2D Array Loop Print Formatting [0][0], [1][1], etc
body: <p>I am having trouble getting my 2D array to print side by side values taking the first array row value index 0 and matching it to the 2nd row array index 0 and continuing on in a vertical list.  As it stands, my code compiles and just prints the entire arrays in a horizontal fashion on two lines.  Basically, I would like the end result to be formatted like this:</p>
  
  <pre><code>Admin | Password1
  Vale.Vicky | BruceIsTheBat!
  Lane.Lois | FlyMeToTheMoon1234
  Kent.Clark | PhoneBoothsSmell
  Wayne.Bruce | ThisBat4You99
  </code></pre>
  
  <p>...and so on.  </p>
  
  <pre><code>public class PasswordArrays {                   // start of class
  
  public static void main(String[] args) {        // Start of main
      // TODO Auto-generated method stub
  
      String [][] idArray = {
              {"Admin", "Vale.Vicky", "Lane.Lois", "Kent.Clark", "Wayne.Bruce", "Parker.Peter", "Rogers.Steve", "Luther.Lex", "Osborn.Harry","Prince.Diana", "Linda Zoel"},
              {"Password1", "BruceIsTheBat!", "FlyMeToTheMoon1234", "PhoneBoothsSmell","ThisBat4You99", "webSlinger","ShieldEnthusiast", "HairClub4Men", "GoblinGoober", "WonderWonderWho?", "WhoIsLindaZoel?"}
              };
  
      printArray(idArray);
  
  } //End of main
  public static void printArray(String a [][]) {      //start of printArray method
  
      for (int row=0; row &lt; a.length ; row++) {       // start of row for loop    
  
          for (int column = 0; column &lt; a [row].length; column++) {       //start of column for loop
  
              System.out.print(a[row][column] + " ");
  
          } // End of column for loop
  
          System.out.println();
  
      } // End of row for loop
  
  
  } // End of printArray method
  
  } //End of class
  </code></pre>
  
  <p>I know there's got to be an answer already for this somewhere but I have been unsuccessful in finding it.  Any help is greatly appreciated.</p>