Learn to convert multi-line string into stream of lines using String.lines() method in Java 11. This method is useful when we want to read content from a file and process each string separately.
Learn to write a string into file in Java using Files.writeString(path, string, options) method. This API has been introduced in Java 11.
Learn to read a file to string in Java using Files.readString(path) method. This API has been introduced in Java 11.
Learn to use String.isBlank() method to determine is a given string is blank or empty or contains only white spaces. isBlank() method has been added in Java 11.
Learn to use String class’s strip(), stripLeading() and stripTrailing() methods to remove unwanted white spaces from a given string in Java 11.