What could be the java equivalent code for following php syntax:
$newPerson = array(
'firstname' => 'First',
'lastname' => 'Last',
'email' => '[email protected]',
);
I think here firstname is index of array and First is value at that index.How can I define such an array in java?