Commit a5d0838
committed
feat: Print formatted movie quote using escape sequences [escape-quote-format]
🔑 Key: escape-quote-format
🧠 Logic:
- Demonstrates multiple escape characters in one line:
• `\'` – inserts a single quote: `Here's`
• `\"` – inserts a double quote: `Johnny!"`
• `\n` – moves the following line to a new line.
• `\t` – adds horizontal tab before the source/attribution.
🧾 Output:
Here's Johnny!"
- The Shining
📘 Purpose:
- Combines single quote, double quote, newline, and tab for proper quote formatting.
- Demonstrates advanced use of string escape sequences in Java for textual formatting and printing.
Signed-off-by: Somesh diwan <[email protected]>1 parent bdd6b71 commit a5d0838
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments