Looking for ways to shorten my code that text aligns an array
<p>just started learning java. This takes an array and lines the columns up, but it seems like there would be a way shorter way of coding this. I have no ideas though..  </p>

<pre><code>  int longestString = 0;
  int numberOfChars;

  String information[][] = { {"First Name:", "a" },
         {"Last Name:", "b"},
         {"Nickname:", "c"},
         {"Example:", "d"},
         {"Example:", "e"},
         {"Example:", "f"},
         {"Example:", "g"}};

  for(int i=0; i&lt;information.length; i++){
   if (information[i][0].length() &gt; longestString) {
    longestString = information[i][0].length();
   }
  }

  numberOfChars = longestString + 1;

  for(int i=0; i&lt;information.length; i++){
   while (information[i][0].length() &lt; numberOfChars){
    information[i][0] += " ";
   }
  }

  for (int i=0; i&lt;information.length; i++){
   System.out.print(information[i][0]);
   System.out.println(information[i][1]);
  }  
</code></pre>
