• To summarize: use the enhanced for loop by default, but consider a hand-written counted loop for performance-critical ArrayList iteration.

    结论:优先采用改进for循环在性能要求苛刻的ArrayList迭代中考虑采用手写计数循环。

    youdao

  • The enhanced for loop (also sometimes known as "for-each" loop) can be used for collections that implement the Iterable interface and for arrays.

    改进for循环(有时称为“for - each”循环)能够用于实现iterable接口集合类数组中

    youdao

  • The enhanced for loop, sometimes called the for-each loop, is translated by the compiler as if the programmer had supplied the equivalent old-style for loop.

    增强for循环有时叫做for - each循环,编译编译它的时候,情形与程序员提供旧式for循环一样。

    youdao

  • Some of the most interesting changes, such as the enhanced for loop, are basically just syntax changes that provide a shortcut for expressing a programming operation.

    一些有趣的更改比如增强for循环,基本上只是语法更改,表示编程操作提供快捷方式

    youdao

  • The main method USES an enhanced for loop to iterate through the different primitives and a simple switch statement on the current instance to set the size value of each primitive.

    main方法使用增强for循环迭代通过不同语,当前实例上使用一个简单switch语句设置每个原语大小

    youdao

  • Note that I used an old-fashioned explicit int loop, rather than the more convenient for (int i : integers) enhanced for loop, because it is slightly faster, even for arrays (see Resources).

    注意使用的是一个老式的显式int循环不是方便for (inti :integers) 改进型 for 循环,因为速度快一点儿(参见 参考资料)。

    youdao

  • Most of the time, we just slap Iterator inside a for() loop or enhanced for() loop and move on, so to speak.

    可以这么大部分时间我们只是Iterator 随意放到for()循环加强 for() 循环中,然后继续其他操作了。

    youdao

  • Pyrex's enhanced for probably speeds it up slightly, but the whole function is mainly the loop.

    虽然pyrex改进后for循环可能有一点加速但是整个函数主要个循环。

    youdao

  • Pyrex's enhanced for probably speeds it up slightly, but the whole function is mainly the loop.

    虽然pyrex改进后for循环可能有一点加速但是整个函数主要个循环。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定