how to check if matcher is empty in java 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");