Text blocks with ending quotes

Report a typo

You have a text block that ends with a quotation mark, but you also want your string to end with the quote and not have a new line character inserted at the end. As it stands, the code below won't compile. Fix the final group of quotation marks so that the code will compile and the text of the String ends with a quotation mark. Enter just the characters after the ! character in the text box below.

Tip: If all characters AFTER the '!' character were removed, what would you need to do to solve this problem?

String poem = """
              "Over hill, over dale,
              Thorough bush, thorough brier,
              Over park, over pale,
              Thorough flood, thorough fire!"""";
Enter a short text
___

Create a free account to access the full topic