Skip to content

Commit 2fe6676

Browse files
fapdashkahgoh
andauthored
Update concepts/strings/about.md
Co-authored-by: Kah Goh <villastar@yahoo.com.au>
1 parent 3d399d2 commit 2fe6676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

concepts/strings/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ String escaped = "c:\\test.txt";
2525
To put a newline character in a string, use the `\n` escape code (`\r\n` on Windows):
2626

2727
```java
28-
"<html>\n <body>\n <h1>Hello, World!</h1>\n </body>\n</html>\n"
28+
String multilineHtml = "<html>\n <body>\n <h1>Hello, World!</h1>\n </body>\n</html>\n";
2929
```
3030

3131
For code that should work on varying operating systems Java offers [`System.lineSeparator()`][system-line-separator], which returns the system-dependent line separator string.

0 commit comments

Comments
 (0)