SyntaxFix
Write A Post
Hire A Developer
Questions
With the openJDK 11 you can use the internal validation to check if the String is null or just white spaces
import jdk.internal.joptsimple.internal.Strings; ... String targetString; if (Strings.isNullOrEmpty(tragetString)) {}