Explain the new String methods added in Java 11.
January 23, 2025
Java 11 added several String methods:
isBlank(): Checks if a string is empty or contains only white spaces.
lines(): Returns a stream of lines split by line terminators.
strip(): Removes leading and trailing white spaces.
repeat(int count): Repeats the string.