Question
/** * 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started