Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { /** * Check wether the given string is null or empty * @param str the string to check * @return true if string was null or empty */ public static boolean isNullOrEmpty(String str) { return str == null || str.isEmpty(); } }