ll
liukangdong
2024-12-26 8866718edafe8f312feb1e7e4c3f9be531c0f7b2
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;
        }
    }
 
}