java.util.NoSuchElementException

原因是在循环内 不可以出现多个next()  

DemoObject  demo = it.next();


原文地址:https://www.cnblogs.com/it66/p/13055893.html