增強for迴圈注意空集合問題

ZHOU_VIP發表於2018-09-27
String[] receiverAddrs = receiverMail.trim().split(",");
for(String receiver : receiverAddrs){
	if(receiver == null || receiver.trim().equals("")){
		continue;
	}
	mailTargetList.add(receiver.trim());
}

https://blog.csdn.net/qingmengwuhen1/article/details/80406329

 

相關文章