Kotlinlearncs.online LogoJava
Return to List

Solve: Quote That

Created By: Geoffrey Challen
/ Version: 2026.8.0

What if the message you want to print contains a double quote? You can't just type it, since Kotlin would decide that your String had ended right there. Instead you escape it by writing \", which means "a double quote, not the end of the String".

Write a snippet of code—not a function—that prints exactly this line, quotation marks and all:

She said "Hello!" and waved.

Related Lessons

Stuck? You may find these lessons helpful:

Report a Problem

Attribution must link to this page: https://www.learncs.online/solve/kotlin/quote-that/[email protected]