X318: quoteString

Given the name of a person and a phrase that person said, return a String in the following format, including the quotation marks:

Patrick Henry said "Give me liberty, or give me death!"

Examples:

quoteString("Patrick Henry", "Give me liberty, or give me death!") -> "Patrick Henry said \"Give me liberty, or give me death!\""

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.