hasNext() 如果仍有元素可以迭代,则返回 true。 返回迭代的下一个元素。并把迭代输出的结果强制转换成Car对象 hasNext()是判断是否有下一个元素 next() 得到下一个元素 iter.hasNext():判断集合中是否有下一个car iter.next():返回集合中的下一个car
https://stevenjohn.iteye.com/blog/846191