Commit 43ec037
committed
feat: Demonstrate newline character usage with println [newline-demo]
🧠 Logic:
- Prints a string using `\n` escape sequence to break into two lines.
- `"Hello\nWorld"` results in:
Hello
World
📘 Purpose:
- Demonstrates how newline `\n` works inside `System.out.println()`.
- Useful for learning escape characters in Java string formatting.
✅ Output formatting:
- This is especially relevant for CLI/terminal output, text layout, and competitive programming.
Signed-off-by: Somesh diwan <[email protected]>1 parent 9c3dcbf commit 43ec037
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments