http://xiangai.taobao.com
http://shop148612228.taobao.com

java ArrayList size 1 没有元素 list.size() = 1 但是显示 All elements are null

if (AmountResponseVOList == null || AmountResponseVOList.size() < 1 || AmountResponseVOList.get(0) == null) {
}

加一个  AmountResponseVOList.get(0) == null  就可以判断是否包含数据了

posted @ 2020-02-29 23:29  万事俱备就差个程序员  阅读(2758)  评论(0编辑  收藏  举报

http://xiangai.taobao.com
http://shop148612228.taobao.com
如果您觉得对您有帮助.领个红包吧.谢谢.
支付宝红包
微信打赏 支付宝打赏