Java文字列isBlank
isEmpty

isBlank文字列

formatted

文字列が空または空白のみの場合にtrueを返します(Java 11+)。

構文

str.isBlank()