PART 1: This class will model an email message. It will have a sender, a recipient, and message text. Note: The message text includes the greeting, the body of the message, and the s

java This class will model an email message.  It will have a sender, a recipient, and message text.  Note: The message text includes the greeting, the body of the message, and the salutation. Example: From: Mark FowlerTo: Samantha Jones Dear Samantha,It is my great pleasure tooffer you a position in the company. Sincerely, Mark  UML Diagram Instructions for Part 1: Please find the Code Check page for this project: Chapter 8 Project Using your IDE (jGrasp, Eclipse, other), create a new project folder called MessageInside this project folder, create a class file named
Write the Class comment describing the class and @author and @version tags Declare and initialize 3 instance variables for:The recipient as type String The sender as type String The messageText as type StringRemember to declare them “private” instead of “public”.  Also, please make sure to use the “this” keyword anytime you use your instance variables after declaring them.
Create a Constructor that takes a recipient and sender as parameters of type String.Inside the constructor, initialize the recipient and sender instance variables with the parameters.  The messageText instance variable can be initialized as an empty String “”.
Write a mutator method, append, that takes a String line of text as a parameterInside this method, append (i.e. add onto) the String line of text to the existing messageText separated by a newline, n.  (This is a bit like total = total “n” value except with Strings)
Write a toString method that returns the entire message in the form:From: Mark Fowler   //sender instance variableTo: Samantha Jones  //recipient instance variableDear Samantha,  //All of this is the message textIt is my great pleasure tooffer you a position in the company.Sincerely, Mark  //Part of message text You can do all of this in one line of code using your instance variables, the words “To”, “From”, and newline escape sequence, “n” (or in multiple lines of code).  Just remember that you are returning one String object from the method – you are not printing the String.
Write a method, print, that outputs a call to the toString method. Once you have written all methods of the Message Class, please test your methods by downloading and saving the following tester file (you can right-click and save as if it does not automatically download):   This file needs to be in the same project folder as Message.Javascript in order to run correctly.  Run MessageTester and check for errors in your Message class. We will copy our code over to Code Check for testing and submission after Part 2. PART 2: This class will model an email mailbox that stores email messages.  We will be using an ArrayList to store the messages created in the Message class. UML Diagram Instructions for Part 2: Again, we will be using the Code Check site:  Chapter 8 Project In the same project folder from Part I, create a new class file named Write the Class comment and @author and @version tags Create one instance variable of type ArrayList to hold the messages. Write a Constructor that takes no parametersInside the constructor, initialize the messages instance variable as a new, empty ArrayList of type Message.
Write a mutator method, addMessage, that takes a parameter of type Message (object) to represent a new message.  (Hint: This is just like String message, except the object type is Message instead of String)  *Remember, we wrote the Message class to represent an email message, just as Javascript developers wrote the String class for us to use.Inside this method, add the message parameter to the instance variable ArrayList.
Write an accessor method, getMessage, that takes a parameter of type int to represent the index of any given message in the ArrayList.Inside this method, get and return the message located at the given index of the ArrayList instance variable (there is an ArrayList method for this!).
Write a mutator method, removeMessage that takes a parameter of type int to represent the index of any given message in the ArrayList.Inside this method, remove the message located at the given index from the ArrayList instance variable (there is an ArrayList method for this!).
Once you have written all methods of the Mailbox Class, please test your classes by adding the lines in this text file, mailbox.txt (right-click and “save as”), to your existing class (you can right-click and select save as and then cut and paste).  You can add these lines to the end of the statements already in the class.  Do not delete any lines.  Run MessageTester.Javascript and check for errors in your Mailbox class. Now that you have written both classes, go to the Code Check website and copy your code into the … inside the code.  I have included the opening and closing { } for each class – please do not duplicate.  When you submit your code, it will be tested with the given data, and you will have a chance to error check and correct your code. PART 3:  Testing and Submitting Once you have thoroughly tested your program, please upload the Code Check zipped file only to this Assignment folder. You will be graded on: Neatness of code and use of proper indentation of 4 spaces, 8 spaces, etc.  This is the Checkstyle part of your Report. Commenting of code – including class comment, @author, @version, and code comments. This is the Checkstyle part of your Report. Good use of constant and variable names – they should be descriptive names and not individual characters or abbreviations.  Ex.  FINAL_COST or firstName. This is the Checkstyle part of your Report. Output is correct and matches the Sample Output for all tests that executed on your code in Code Check.  This is the Test 1, Test 2, etc. part of your Report.  They must say “Pass”. Correct calculations using variables and constants (i.e. the math is correct).  This is the Test 1, Test 2, etc. part of your Report. My visual inspection of your code.  I will be checking for good variable and constant names and well as good indenting of code.  Instructor reserves the right to make adjustments to the Code Check score based on inspection. ALL DONE!!  Great job!

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
The price is based on these factors:
Academic level
Number of pages
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more