X1537: makeQuote

Write a method that takes a quote and its author as two separate strings, and returns a single string formatted in this style:

"The only true wisdom is knowing you know nothing" --Socrates

Note that the input strings will not have any double quotes, and that double quote characters need a special way to be put into a string (either as a char or using an escape sequence).

Make sure to include a space after the quote and then two dashes.

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.