原因是在循环内 不可以出现多个next()
DemoObject demo = it.next();
java.util.NoSuchElementException
原文:https://www.cnblogs.com/it66/p/13055893.html