Skip to content

Commit 1ef8e46

Browse files
fapdashkahgoh
andcommitted
Update concepts/strings/about.md
Co-authored-by: Kah Goh <villastar@yahoo.com.au>
1 parent 01c5a65 commit 1ef8e46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)