You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
strings - Expand concept by newline and text blocks
- Add multi-line strings / text blocks (Java 15)
- Add explanation of newlines / end of line chars,
so students can understand the motivation behind text blocks
For code that should work on different operating systems Java offers [`System.lineSeparator()`][system-line-separator], which returns the system-dependent line separator string.
32
+
33
+
To comfortable work with texts that contain a lot of newlines you can use [Text Blocks](text-blocks).
34
+
These multi-line strings are delimited by triple double quote (`"`) characters.
0 commit comments