Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

/** * This class creates letters in an automated fashion. * */ public class Letter { /** * Constructor that sets the letter writer and

/**

* This class creates letters in an automated fashion.

*

*/

public class Letter {

/**

* Constructor that sets the letter writer and recipient.

*

* @param from

* Person who is writing the letter.

* @param to

* Person to whom the letter is addressed.

*/

public Letter(String from, String to) {

}

/**

* Add a line of text to the body of the letter.

*

* @param line

*/

public void addLine(String line) {

}

/**

* Creates a letter using the designated sender and recipient. The format of

* the letter is:

*

* Dear recipient name: blank line first line of the body second line of the

* body ... last line of the body blank line Sincerely, blank line sender

* name

*

* @return the formatted letter.

*/

public String getText() {

}

}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions