java not null or empty string code example
Example: check if a string is empty java
if (myString == null || myString.equals(""))
throw new IllegalArgumentException("empty string");
if (myString == null || myString.equals(""))
throw new IllegalArgumentException("empty string");