枚举与迭代的区别
作者: manishkaushik900创建于 2021年6月3日更新于 2025年11月27日
枚举对象没有 remove() 方法,而迭代器有 hasNext()、next()、remove() 方法。枚举对象只有 hasMoreElement()、nextElement() 方法。
内容来源: amitshekhariitbhu/android-interview-questions
枚举对象没有 remove() 方法,而迭代器有 hasNext()、next()、remove() 方法。枚举对象只有 hasMoreElement()、nextElement() 方法。
内容来源: amitshekhariitbhu/android-interview-questions