wrong code
for (BookDataBean book : bookList) {
if (TextUtils.isEmpty(book.getItemId())) {
bookList.remove(book);
}
}
right code
for (Iterator<BookDataBean> bookIter = bookList.iterator(); bookIter.hasNext(); ) {
BookDataBean book = bookIter.next();
if (TextUtils.isEmpty(book.getItemId())) {
bookIter.remove();
}
}
* http://stackoverflow.com/questions/3184883/concurrentmodificationexception-for-arraylist
* http://egloos.zum.com/iilii/v/5350490
* http://dura.lookskorea.com/bbs/board.php?bo_table=mms_edu&wr_id=1&page=22