IndexOutOfBoundsException 数组越界

IndexOutOfBoundsException,如何避免?

if(null!=list&&list.size() > 0){
      //todo
}
posted @ 2020-09-21 11:33  dadongx  阅读(193)  评论(0编辑  收藏  举报