Class StringIndentExamples
java.lang.Object
net.jrodolfo.java_evolution.java12.StringIndentExamples
Demonstrates
String.indent(int), introduced in Java 12.
Before Java 12, adding or removing indentation from multi-line text usually meant splitting lines, modifying each one, and joining them again.
String.indent solves this directly by applying indentation changes
to every line. Positive values add spaces, while negative values remove
indentation where possible.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StringIndentExamples
public StringIndentExamples()
-
-
Method Details
-
indent
-
removeIndent
-