title: Print LinkedHashMap in table format
body: <p>I am looking for better algorithm to print a LinkedHashMap in table format by its key.
  I explain scenario here,</p>
  
  <pre><code>//hashmap goes like this
  LinkedHashMap&lt;String , ArrayList&lt;String&gt;&gt; hash=new LinkedHashMap&lt;String,ArrayList&lt;String&gt;&gt;();
  
  // put some values in some arraylist
  ArrayList&lt;String&gt; value1=Arrays.asList("s1", "s2", "s3");
  ArrayList&lt;String&gt; value2=Arrays.asList("s4", "s5", "s6");
  ArrayList&lt;String&gt; value1=Arrays.asList("s7", "s8", "s9");
  
  // put values in hashmap
  hash.put("key1",value1);
  hash.put("key2",value2);
  hash.put("key3",value3);
  </code></pre>
  
  <p>Now, i wish output should be like this in <code>html</code> table.</p>
  
  <pre><code>key1 key2 key3
  
  s1    s4   s7
  
  s2    s5   s6
  
  s3    s6   s9
  </code></pre>
  
  <p>what is good way to do this? thanks .</p>