Here you can find the source of isNullOrEmpty(String str)
public static boolean isNullOrEmpty(String str)
//package com.java2s; public class Main { public static boolean isNullOrEmpty(String str) { return str == null || str.trim().length() == 0; }/*from www. jav a 2s . c o m*/ }