Open the mail-system project, which you can find in the book’s support material. The idea of this project is to simulate the act of users sending mail items to each other. A user uses a mail client to send mail items to a server, for delivery to another user’s mail client. First create a MailServer object. Now create a MailClient object for one of the users. When you create the client, you will need to supply a MailServer instance as a parameter. Use the one you just created. You also need to specify a username for the mail client. Now create a second MailClient in a similar way, with a different username.
Experiment with the MailClient objects. They can be used for sending mail items from one mail client to another (using the sendMailItem method) and receiving messages (using the getNextMailItem or printNextMailItem methods).
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.