判断字符串是否为空 @param str 待校验字符串 @return boolean
(String... str)
| 17 | * @return boolean |
| 18 | */ |
| 19 | public static boolean isEmpty(String... str) { |
| 20 | for (String s : str) { |
| 21 | if (s == null || "".equals(s.trim())) { |
| 22 | return true; |
| 23 | } |
| 24 | } |
| 25 | return false; |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * 判断字符串中是否包含特殊字符 |
no outgoing calls
no test coverage detected