Hi,
I am confuse about how we can figure out which space is incidental and which one is essential in text block?
I was going through
Java SE 17 Developer certification guide book. As mentioned in book, "Imagine a vertical line drawn on the leftmost non-whitespace character in your text
block. Everything to the left of it is incidental whitespace, and everything to the right is essential whitespace." But same is not working with my code.
code -
String v = """
Fing
Thom
""";
Output -
Fing
Thom
Expected - The whitespace in front of Fing should have been incidental whitespace, right ?