Here you can find the source of isEmpty(String s)
public static Boolean isEmpty(String s)
//package com.java2s; public class Main { public static Boolean isEmpty(String s) { boolean flag; if (s == null || s.length() == 0) flag = true;//from ww w. j av a2 s .co m else flag = false; return Boolean.valueOf(flag); } }