Question: In this Assignment you will write four java files, Message.java, MessageTester.java, Mailbox.java, and MailboxTester.java. messages0.txt OriginalSender1 OriginalRecipient1 This is my original message1 OriginalSender2 OriginalRecipient2 This

In this Assignment you will write four java files, Message.java, MessageTester.java, Mailbox.java, and MailboxTester.java.

In this Assignment you will write four java files, Message.java, MessageTester.java, Mailbox.java,and MailboxTester.java. messages0.txt OriginalSender1 OriginalRecipient1 This is my original message1 OriginalSender2 OriginalRecipient2This is my original message2 messages1.txt Eric_A_Bially Zachary_B_Howard This_is_test_message_1 Brett_V_Bohorquez Marcus_R_McPartland This_is_test_message_2Aron_I_Brewster Patrick_C_Nauman This_is_test_message_3 Joshua_J_Dennis Jacob_G_Neff This_is_test_message_4 Stephen_M_Gentzler Kevin_A_Orlowski This_is_test_message_5 Adam_James_D_Geosits Oscar_J_Phillips This_is_test_message_6Rudolf_C_Gouker Andy_R_Sayer This_is_test_message_7 Zachary_B_Howard Craig_Smith This_is_test_message_8 1 Description of the Program In

messages0.txt 
OriginalSender1 OriginalRecipient1 This is my original message1 OriginalSender2 OriginalRecipient2 This is my original message2 
 messages1.txt Eric_A_Bially Zachary_B_Howard This_is_test_message_1 Brett_V_Bohorquez Marcus_R_McPartland This_is_test_message_2 Aron_I_Brewster Patrick_C_Nauman This_is_test_message_3 Joshua_J_Dennis Jacob_G_Neff This_is_test_message_4 Stephen_M_Gentzler Kevin_A_Orlowski This_is_test_message_5 Adam_James_D_Geosits Oscar_J_Phillips This_is_test_message_6 Rudolf_C_Gouker Andy_R_Sayer This_is_test_message_7 Zachary_B_Howard Craig_Smith This_is_test_message_8 

1 Description of the Program In this assignment, you will write four java files, Message.java, MessageTester.java, Mailbox.java and MailboxTester.java, Stage 1: In the first file Message.java, create a class named Message that models an email message. It should contain the following: . Private instance variables sender, recipient, and messagetext . A default constructor that takes no inputs (set all members to an empty string) . A constructor takes all three inputs (sender, recipient and messagetext); Three getter methods to return each of three instance variables (accessor); . Three setter methods to change each of three instance variables (mutator . A method toString that makes the message into one long string like this: From: Harry Morgan To: Rudolf Reindeer This is my message.. . Stage 2: In the second file MessageTester.java, write code to test the methods that you write in the class of Message.java. Specifically: 1. Create two message objects using the constructor taking inputs. The inputs are from "messages0.txt. You can either read the file into message objects, or you can manually initialize the objects using the information from the file. 2. Print them out using toString) method 3. Set each object using setter methods (Inputs, e.g., CurrentSender1, CurrentRecipient1) 4. Display each object's information using getter methods. Your output should look like igureI

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!