这里写自定义目录标题



java String 对象为空格时,长度不为0


通常判断null,空字符串或者空格方式如下:

if (emailAddr == null || emailAddr.length()==0 || emailAddr.equals("") || emailAddr.trim().isEmpty()) {
 addressName = jointMailAddr(lastName,emplId);
 }else {
 addressName = psabEmplVo.getEmailAddr();
 }