3. (a) Show how to create a HashMap object named salaries in Java. Assume that the
keys are String objects and the values are Integer objects.
(b) The following Perl statements appear in Chapter 6 of Sebesta (slightly modified).
Translate each statement into Java, using the salaries object of part (a).
i. %salaries = ("David" => 45600, "Lisa" => 55000,
"Marco" => 76000, "Doris" => 59000);
ii. \$salaries{"Lisa"} = 60000;
iii. delete \$salaries{"David"};
iv. @salaries = ();
v. if (exists \$salaries{"Alice"})...