在Java中的foreach关键字? [英] foreach keyword in java?
本文介绍了在Java中的foreach关键字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在编程中以及何时使用它,我知道 foreach
的含义。 Java中是否存在 foreach
关键字?我试图找到一个关键字列表,但只有用于
而不是 foreach
。
I know the meaning of foreach
in programming and when to use it. Is there a foreach
keyword in Java? I tried to find a list of keywords but there is only for
and not foreach
.
解决方案
foreach is not a java keyword (IDE recognizes it and puts the "For-each" loop).
这篇关于在Java中的foreach关键字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文