title: Java associative-array
body: <p>How can I create and fetch associative arrays in Java like I can in PHP?</p>
  
  <p>For example:</p>
  
  <pre><code>$arr[0]['name'] = 'demo';
  $arr[0]['fname'] = 'fdemo';
  $arr[1]['name'] = 'test';
  $arr[1]['fname'] = 'fname';
  </code></pre>