title: How to merge two arrays in Java?
body: <p>Its not to concatenate but to merge two arrays so that they become array of name value pairs.</p>
  
  <pre><code>firstarray = ["a","aa","aaa"]
  secondarray = ["b","bb","bbb"]
  result = [["a","b"],["aa","bb"],["aaa","bbb"]]
  </code></pre>
  
  <p>What is the best way to do it?</p>