判断字符串是不是为空

判断字符串是否为空/**? * Checks if an string is empty.? */public static boolean isEmpty(String str)

判断字符串是否为空

/**
? * Checks if an string is empty.
? */

public static boolean isEmpty(String str) {
??return (str == null) || (str.trim().length() == 0);
?}