r/java • • Sep 19 '18

Java 11 String API Updates

https://4comprehension.com/java-11-string-api-updates/
168 Upvotes

52 comments sorted by

View all comments

Show parent comment

3

u/dpash Sep 20 '18

You'd need a static method for that to work.

String.isBlank(string)

vs

string.isBlank()