111
k94314517
2024-01-31 5bce819f4a418f9ae352eb105e33707de1e0c1ce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package cn.emay.sdk.util;
 
public class StringUtil {
 
    /**
     * 判断是否为空
     * 
     * @param val
     * @return
     */
    public static boolean isEmpty(String val) {
        if (val == null || (val.trim()).length() == 0 || "null".equals(val.trim())) {
            return true;
        } else {
            return false;
        }
    }
 
}