返回字符串长度 @param s 字符串 @return null返回0,其他返回自身长度
(CharSequence s)
| 180 | * @return null返回0,其他返回自身长度 |
| 181 | */ |
| 182 | public static int length(CharSequence s) { |
| 183 | return s == null ? 0 : s.length(); |
| 184 | } |
| 185 | |
| 186 | /** |
| 187 | * 首字母大写 |
no outgoing calls
no test coverage detected