正在加载图片...
iterators Java标准库中有几个定义迭代器对象的类。 Scanner类是一个迭代器 the hasNext method returns true if there is more data to be scanned the next method returns the next scanned token as a string Scanner类还有各种版本的 hasNext方法来处理各种 不同的数据类型。 27 JAVA27 Iterators • Java标准库中有几个定义迭代器对象的类。 • Scanner类是一个迭代器 – the hasNext method returns true if there is more data to be scanned – the next method returns the next scanned token as a string • Scanner 类还有各种版本的 hasNext 方法来处理各种 不同的数据类型
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有