String Method updates with Java 12
16th Jul 2022 by Aneesh Mistry

Java 12 String enhancements

Take a look at the 2 new methods introduced to the String class with Java 12. String.indent() will allow you to add and remove empty characters to the start of each line of a String. String.transform() will allow you to pass in a functional interface to accept a String and return a String for a convenient way to update a String.

YouTube video link


Share this post