Java tutorial
//package com.java2s; public class Main { static boolean isNullOrEmpty(String str) { if (str == null || str.length() == 0) { return true; } return false; } }