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