Here you can find the source of isNotEmpty(String s)
public static boolean isNotEmpty(String s)
//package com.java2s; public class Main { public static boolean isNotEmpty(String s) { return (s != null && s.trim().length() > 0); }/*from www . ja va2 s . c o m*/ }