Question: BIG JAVA P8.21 Design a class Message that models an e-mail message. A message has a recipient, a sender, and a message text. Support the

BIG JAVA P8.21

Design a class Message that models an e-mail message. A message has a recipient, a sender, and a message text. Support the following methods:

- A constructor that takes the sender and recipient

- A method append that appends a line of text to the message body

- A method toString that makes the message into one long string like this: From: Harry Morgan To: Rudolf Reindeer

You will implement two public classes: the Message class, and the MessageTester class. The MessageTester class contains the main method. The Message class uses an ArrayList to hold the lines of the message.

Write a program that uses this class to make a message and print it.

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!