Question: Programming its purpose 1. a. Create an ArrayList, HashMap and HashSet Objects. [3 marks] b. Add 2 entries to each one of them using an

Programming its purpose Programming its purpose 1. a. Create an ArrayList, HashMap and HashSet Objects.

1. a. Create an ArrayList, HashMap and HashSet Objects. [3 marks] b. Add 2 entries to each one of them using an appropriate method. 2. Complete the constructor in Message class to initialize fields correctly. 12 marks! public class Mail public class Message extends private String sender; Mail! private String receiver; private String mg; public Mail (String s, String public Message (String r) sender, String receiver, String msg) sender - S; //TODO: Complete the constructor receiver - ri

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!