DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Pramod Bablad
Pramod Bablad

Posted on

Java New String Methods – From Java 8 To Java 17

Strings are the most used data type in Java. Almost every application in Java makes use of strings. That’s why strings are treated with special attention in Java. From time to time, new methods are added to String class so that working with strings becomes effortless and simple. join() in Java 8, chars() and codePoints() in Java 9, isBlank(), lines(), repeat(), strip(), stripLeading() and stripTrailing() in Java 11, indent(), transform(), describeConstable() and resolveConstantDesc() in Java 12, formatted(), stripIndent() and translateEscapes() in Java 15 are some new Java string methods.

javaconceptoftheday.com

See more at https://javaconceptoftheday.com/java-new-string-methods-with-examples/

Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.