Android examples for java.lang:Character
is string Has Empty Char
import android.annotation.SuppressLint; import java.text.SimpleDateFormat; import java.util.Date; public class Main{ public static boolean isHasEmptyChar(String source) { if (source == null) { return true; }/*from ww w . j a v a 2 s . c om*/ return source.trim().indexOf(' ') >= 0; } }