USING JAVA: Implement a simple e-mail messaging system. A message has a recipient, a sender, and a message text. A mailbox can store messages. Supply a number of mailboxes for different users and a user interface for the user to login, send messages to other users, read their own messages, and log out.
USING JAVA:
Implement a simple e-mail messaging system. A message has a recipient, a sender, and a message text. A mailbox can store messages. Supply a number of mailboxes for different users and a user interface for the user to login, send messages to other users, read their own messages, and log out.

Question:
Answer:
Here below is the code for the given question in JAVA Programming Language:
Here is the Message class with recipient, sender, and message text as its fields.
public class Message {
private String recipient;
private String sender;
private String messageText;
public Message(String recipient, String sender, String messageText) {
this.recipient = recipient;
this.sender = sender;
this.messageText = messageText;
}
public String getRecipient() {
return recipient;
}
public String getSender() {
return sender;
}
public String getMessageText() {
return messageText;
}
}
Trending now
This is a popular solution!
Step by step
Solved in 6 steps









