← all problems

Print a phrase with quote marks 🌶️

Write code in the box so that the program prints the exact phrase: She said "Hello!" to me. (including the quote marks around Hello!), using a single System.out.println statement. Since a String literal already uses double quotes to mark where it starts and stops, you can't just type a quote character in the middle of one; you'll need an escape sequence to include a literal quote inside your string. Check the hints below if you get stuck.

Main.java — the program frame below is already written; you're only completing the code in the editable box.

public class Main {
    public static void main(String[] args) {
        // ---- write your code below ----
    }
}