How can I check whether a string is not null and not empty?
public void doStuff(String str) { if (str != null && str != \"**here I want to check
Returns true or false based on input
Predicate p = (s)-> ( s != null && !s.isEmpty()); p.test(string);