Java check if a string is null or empty

Java check if a string is null or empty
if (myString == null || myString.equals(""))

// check if string is not null or empty
if(str != null && !str.isEmpty())
Sou‮‬rce:www.lautturi.com
Created Time:2017-09-10 11:03:07  Author:lautturi