Problems
Use the following problems to test your string manipulation, Java locales, and mathematical corner case programming prowess. I strongly encourage you to give each problem a try before you turn to the solutions and download the example programs:
- Creating a multiline SQL, JSON, and HTML string: Write a program that declares a multiline string (for instance, SQL, JSON, and HTML strings).
- Exemplifying the usage of text block delimiters: Write a program that exemplifies step-by-step how the delimiters of a text block affect the resulting string.
- Working with indentation in text blocks: Write a program that exemplifies different techniques to indent a text block. Explain the meaning of incidental and essential white spaces.
- Removing incidental white spaces in text blocks: Highlight the main steps of the algorithm used by the compiler to remove the incidental white spaces of a text block.
- Using text blocks just for readability: Write a program...