集合删除空元素 emailList.removeAll(Collections.singleton("")); emailList.removeAll(Collections.singleton(null));