is string Has Empty Char - Android java.lang

Android examples for java.lang:Character

Description

is string Has Empty Char

Demo Code

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;
    }

}

Related Tutorials