The commonly used String class received new API’s.
What are the new API’s ?
Returns true if the string is empty or contains only white spaces, which is treated as blank.
Returns a stream of lines extracted from the string.
Removes whites spaces from beginning & ending of string, as well as trailing and leading. Handles unicode unlike trim().
Removes leading whitespace.
Removes trailing whitespace.
Repeats the string n amount of times.
Code Example can be found here.
This is meant to cut down on boilerplate code, as well as cut down on adding dependencies/imports for these functionalities.