Java でStringがnullまたは空文字かを判別する方法をメモしておきます。 ... isEmpty() を先に書くと、 str が null の場合に NullPointerException が ...
確定! 回上一頁