java7 check if string is empty 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");