Question
I need help with this. This needs to be written in very simple java code (for beginners) Write a mail merge application called MailMerge.java. Your
I need help with this. This needs to be written in very simple java code (for beginners)
Write a mail merge application called MailMerge.java. Your program should read the input for the problem from System.in. The expected input will consist of three parts:
- A tag specification consisting of a list of space-separated tags on a single line, where each tag is of the form >, with an alphabet letter between two sets of angle brackets.
- A database consisting of lines of database entries, where each line has as many space-separated data items as there are tags specified in the first line of input. The database lines will conclude with a line containing only three dashes, "---".
- A template for the mail merge. All of the lines after the "---" should be considered the contents of a form letter with tags to be replaced.
Once all of the input has been read, the program should output should be a series of exact copies of the form letter template, with the occurrences of tag specifications replaced by corresponding items from the database.
Example Run #1 John 35 male Sally 28 female Megan 55 female Dear
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