Can someone please provide an example of creating a Java
HashMap on the fly? So instead of doing an
put(), actually supplying the seed data for the array/hash at the class instantiation?
To provide an example, something similar to PHP for instance:
$array = array (3, 1, 2); $assoc_array = array( 'key' => 'value' );